Skip to content

Add create_superuser script for Django superuser creation#63

Merged
lalalaurentiu merged 1 commit intopeviitor-ro:mainfrom
lalalaurentiu:validator
Oct 14, 2025
Merged

Add create_superuser script for Django superuser creation#63
lalalaurentiu merged 1 commit intopeviitor-ro:mainfrom
lalalaurentiu:validator

Conversation

@lalalaurentiu
Copy link
Collaborator

This pull request adds a utility script for creating a Django superuser based on environment variables. The script checks for required credentials and creates the superuser only if one doesn't already exist.

Superuser creation utility:

  • Added scraper_Api/create_superuser.py script to automate superuser creation using DJANGO_SUPERUSER_EMAIL and DJANGO_SUPERUSER_PASSWORD from environment variables. The script initializes Django, validates the presence of credentials, checks for an existing user, and creates the superuser if necessary.

@lalalaurentiu lalalaurentiu merged commit bcb126d into peviitor-ro:main Oct 14, 2025
6 checks 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