This release is a pre-release and may not be stable for production use.
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).
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bma-0.2.0a2.tar.gz | 1.1 MB | Without provenance | Details for bma-0.2.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bma-0.2.0a2-py3-none-any.whl | Python 3 | none | any | Details for bma-0.2.0a2-py3-none-any.whl |
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
|
Security for bma 0.2.0a2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.