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

Adding a custom command to create default super user + More enhancements #180

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

codebanesr
Copy link
Contributor

Summary: This pull request (PR) introduces a new feature that allows for the creation of a default superuser during application initialization through a data migration. The primary goal is to simplify the setup process for developers by providing an easy way to add an initial superuser account without the need for a custom management command.

Key Changes:

  1. A new data migration is added to the app's migrations directory.
  2. The data migration contains a function that creates a superuser with predefined credentials (e.g., username 'admin', email '[email protected]', password 'password').
  3. The migration is designed to execute automatically during the application's database setup process, ensuring that the default user is created as part of the initial database schema.

@codebanesr codebanesr changed the title Adding a custom command to create default super user Adding a custom command to create default super user + More enhancements Oct 23, 2023
@codebanesr codebanesr merged commit bfa3106 into main Oct 23, 2023
1 check passed
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.

1 participant