mirror of
https://github.com/encounter/decomp.me.git
synced 2026-03-30 11:06:27 -07:00
50a2b836b9
* Migrate from poetry/black to uv/ruff * fixes * path change * path pt 2 * ah * mkst tweaks (#1674) * mkst tweaks * tweaks++ * doh * tweak harder --------- Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
886 B
886 B
GitHub authentication
-
Register a new OAuth application
- "Homepage URL" should be the URL you access the frontend on (e.g.
http://localhost:8080) - "Authorization callback URL" should be the same as the homepage URL, but with
/loginappended
- "Homepage URL" should be the URL you access the frontend on (e.g.
-
Edit
.env.local:- Set
GITHUB_CLIENT_IDto the application client ID - Set
GITHUB_CLIENT_SECRETto the application client secret (do not share this)
- Set
-
Restart the server
Making a user an admin
After signing in with GitHub, you can make yourself an admin with the following:
$ uv run python3 manage.py shell
>>> from django.contrib.auth.models import User
>>> user = User.objects.get(username="your_username")
>>> user.is_staff = True
>>> user.is_superuser = True
>>> user.save()
Then you can access the Django admin interface at /admin.