Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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).

Metadata

Release files for bma 0.2.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bma 0.2.0a2
File Size Uploaded
bma-0.2.0a2.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bma 0.2.0a2
File Interpreter ABI Platform
bma-0.2.0a2-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / bma-0.2.0a2.tar.gz

Download URL bma-0.2.0a2.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
75daacb0f0b08a696db1ec549ba7f7b38a7e89a2156fa025dea5b4bdef042467
BLAKE2b-256 checksum
How to use checksums
df0037c00f80bcea31f300a1f56b448751142a9f61a12aa05f3b9c5b4cac4585
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Release files / bma-0.2.0a2-py3-none-any.whl

Download URL bma-0.2.0a2-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dcb355d6bde704b07e7d4f49b74719dd81ffc0c9f3a46e8c77f7e1ac6963e8ae
BLAKE2b-256 checksum
How to use checksums
c51f8a5ba8e1cd8f29436da1c78a6038d853d1f3241a9fb17df4879ecd209288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.2.0a2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page