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.

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


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.0a2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bma-0.2.0a2-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

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

Hashes for bma-0.2.0a2.tar.gz
Algorithm Hash digest
SHA256 75daacb0f0b08a696db1ec549ba7f7b38a7e89a2156fa025dea5b4bdef042467
MD5 b7e0f2a6af6fff1ccc161450fa11d113
BLAKE2b-256 df0037c00f80bcea31f300a1f56b448751142a9f61a12aa05f3b9c5b4cac4585

See more details on using hashes here.

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

Hashes for bma-0.2.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcb355d6bde704b07e7d4f49b74719dd81ffc0c9f3a46e8c77f7e1ac6963e8ae
MD5 59437e2b6150dd187b35952f9c94e594
BLAKE2b-256 c51f8a5ba8e1cd8f29436da1c78a6038d853d1f3241a9fb17df4879ecd209288

See more details on using hashes here.

Supported by

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