Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Unattended superuser creation #1778

Merged
merged 3 commits into from Nov 9, 2023
Merged

Conversation

thekaveman
Copy link
Member

Closes #1776

Reviewing

In your .env file, add the new environment variables:

DJANGO_SUPERUSER_EMAIL=you@example.com
DJANGO_SUPERUSER_PASSWORD=password
DJANGO_SUPERUSER_USERNAME=username

# also make sure DJANGO_ADMIN is true to enable the admin:
DJANGO_ADMIN=true

Rebuild and reopen the devcontainer.

Confirm in the init output that the admin/user migrations are run and superuser is created.

Launch the app with F5, and visit localhost:PORT/admin in your browser. Confirm you can login with the username/password above.

@thekaveman thekaveman requested a review from a team as a code owner November 8, 2023 23:13
@thekaveman thekaveman self-assigned this Nov 8, 2023
@thekaveman thekaveman added this to the Admin tool: v1 milestone Nov 8, 2023
@github-actions github-actions bot added infrastructure Terraform, Azure, etc. deployment-dev [auto] Changes that will trigger a deploy if merged to dev documentation [auto] Improvements or additions to documentation and removed infrastructure Terraform, Azure, etc. labels Nov 8, 2023
@thekaveman thekaveman added the infrastructure Terraform, Azure, etc. label Nov 8, 2023
Copy link

github-actions bot commented Nov 8, 2023

Coverage report

The coverage rate went from 90.87% to 90.87% ➡️
The branch rate is 85%.

None of the new lines are part of the tested code. Therefore, there is no coverage data about them.

Copy link
Member

@machikoyasuda machikoyasuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in!

image image

@thekaveman thekaveman merged commit 08b52c1 into dev Nov 9, 2023
12 checks passed
@thekaveman thekaveman deleted the feat/unattended-superuser branch November 9, 2023 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment-dev [auto] Changes that will trigger a deploy if merged to dev documentation [auto] Improvements or additions to documentation infrastructure Terraform, Azure, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for unattended superuser creation
2 participants