Skip to main content

BornHack Media Archive Django project

Project description

Run Tox CI Ruff codecov

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.dist to bma/environment_settings.py and either edit it directly, or use .env file or environment variables to configure.
    • Set OAUTH_SERVER_BASEURL to 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.
  • 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/.
  • 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.
  • Run manage.py createsuperuser to 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.com to chosen sites.

It should now be possible to login to BMA using a BornHack account.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bma-0.2.0a1.tar.gz (955.8 kB view details)

Uploaded Source

Built Distribution

bma-0.2.0a1-py3-none-any.whl (998.4 kB view details)

Uploaded Python 3

File details

Details for the file bma-0.2.0a1.tar.gz.

File metadata

  • Download URL: bma-0.2.0a1.tar.gz
  • Upload date:
  • Size: 955.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for bma-0.2.0a1.tar.gz
Algorithm Hash digest
SHA256 fdbc48ab2998a03338acb86e9d91f75985192066ad093aed201300b641915f07
MD5 398d8419a8fcd186364da69342ae5d47
BLAKE2b-256 d11e23ab8e21da1a183876fde1d5527afa3c4063de8fb8d69857682845c9219c

See more details on using hashes here.

File details

Details for the file bma-0.2.0a1-py3-none-any.whl.

File metadata

  • Download URL: bma-0.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 998.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for bma-0.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 6906e7a9e41c5a3124ea70255c45f7b8184a97f04b0ad4b2f7fcee26d890a2cc
MD5 d4f40ac03011b9b71972a051b6b4bffa
BLAKE2b-256 656ce880987031154a7ff8e721d92d904684d21261104ed8e0156b222a1eb0ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page