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: initialize Django and create db #37

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Feat: initialize Django and create db #37

merged 2 commits into from
Dec 9, 2024

Conversation

lalver1
Copy link
Member

@lalver1 lalver1 commented Dec 9, 2024

Closes #33

When the dev container starts, this PR:

  • creates/resets the database
  • runs migrations
  • collects static files
  • creates the Django superuser

- add env variables to reset db and for super user info
- reset the db, run migrations, and create superuser when the devcontainer starts
@lalver1 lalver1 self-assigned this Dec 9, 2024
@lalver1 lalver1 marked this pull request as ready for review December 9, 2024 21:25
@lalver1 lalver1 requested a review from a team as a code owner December 9, 2024 21:25
Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

This is excellent! I was able to rebuild and reopen the devcontainer, F5 to launch the app, hit the /admin endpoint and logged in!

image

@lalver1 lalver1 merged commit 5eeeaf9 into main Dec 9, 2024
7 checks passed
@lalver1 lalver1 deleted the feat/django-db-init branch December 9, 2024 21:56
@thekaveman thekaveman added this to the Initial project setup milestone Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create database/Django initialization pipeline
2 participants