BornHack Media Archive Django project
Project description
bma
BornHack Media Archive
What
The BornHack Media Archive is a site for sharing pictures and video from BornHack events. It uses the BornHack website oauth2 provider for login.
How
Note! The server is using database functions not compatible with sqlite. Use postgresql instead.
- Copy
bma/environment_settings.py.disttobma/environment_settings.pyand either edit it directly, or use .env file or environment variables to configure.- Set
OAUTH_SERVER_BASEURLto point to a local instance of the BornHack website eg.http://127.0.0.1:8000, or leave it pointing at the prod bornhack.dk server.
- Set
- Create an oauth app on the BornHack instance you specified in
OAUTH_SERVER_BASEURL:- login to the BornHack instance and go to the url
OAUTH_SERVER_BASEURL/o/applications. - register a new app.
- client type
confidential - grant type
authorization code - redirect uri's
BMA_BASEURL/accounts/bornhack/login/callback/eg.http://127.0.0.1:8001/accounts/bornhack/login/callback/.
- login to the BornHack instance and go to the url
- Run
manage.py migrate- If you get a database error about missing 'gist', you need to run
create extension btree_gist;on your postgresql instance.
- If you get a database error about missing 'gist', you need to run
- Run
manage.py createsuperuserto create a local database user in the BMA instance - Log in with the superuser and add a social app on the BMA admin website using the client id and secret from the bornhack website used in the above step.
- Move
example.comtochosen sites.
It should now be possible to login to BMA using a BornHack account.
To use the CLI app for uploading or BMA workers make sure the url of the autocreated oauth application for the user matches the BMA instance (for localhost dev change https to http).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bma-0.2.0a2.tar.gz.
File metadata
- Download URL: bma-0.2.0a2.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75daacb0f0b08a696db1ec549ba7f7b38a7e89a2156fa025dea5b4bdef042467
|
|
| MD5 |
b7e0f2a6af6fff1ccc161450fa11d113
|
|
| BLAKE2b-256 |
df0037c00f80bcea31f300a1f56b448751142a9f61a12aa05f3b9c5b4cac4585
|
File details
Details for the file bma-0.2.0a2-py3-none-any.whl.
File metadata
- Download URL: bma-0.2.0a2-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcb355d6bde704b07e7d4f49b74719dd81ffc0c9f3a46e8c77f7e1ac6963e8ae
|
|
| MD5 |
59437e2b6150dd187b35952f9c94e594
|
|
| BLAKE2b-256 |
c51f8a5ba8e1cd8f29436da1c78a6038d853d1f3241a9fb17df4879ecd209288
|