Fix Django superuser creation failing with ImproperlyConfigured error (#9554)
* Initial plan * Fix Django superuser creation by using manage.py shell Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> * Add $STD prefix to superuser creation for consistency Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
parent
fd8a305129
commit
c5eae09b93
@ -89,7 +89,7 @@ $STD python manage.py migrate --noinput
|
||||
$STD python manage.py collectstatic --noinput
|
||||
$STD python manage.py compress
|
||||
|
||||
python <<EOF
|
||||
$STD python manage.py shell <<EOF
|
||||
from django.contrib.auth import get_user_model
|
||||
User = get_user_model()
|
||||
if not User.objects.filter(email="${ADMIN_EMAIL}").exists():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user