Commit 934d6ccc authored by Alain Takoudjou's avatar Alain Takoudjou

software/patrowl: fix create admin script

parent ba39209a
......@@ -31,7 +31,7 @@ md5sum = d2d8c018fd46a9e2936736961a3fa872
[template-create_default_admin.py.in]
filename = create_default_admin.py.in
md5sum = 9b7bb45c5c934884054eedc0f7d801ef
md5sum = d91efabfb2f107be145b5b668063b500
[template-nginx.conf.in]
filename = nginx.conf.in
......
from django.contrib.auth import get_user_model
User = get_user_model()
if not User.objects.filter(username='{{ admin_username }}').exists():
User.objects.create_superuser('{{ admin_username }}', '{{ admin_email }}, '{{ admin_passwd }}')
User.objects.create_superuser('{{ admin_username }}', '{{ admin_email }}', '{{ admin_passwd }}')
......@@ -88,6 +88,7 @@ eggs =
${Werkzeug:egg}
zipp
cpe
${slapos.recipe.template:egg}
scripts =
gunicorn
celery
......@@ -300,4 +301,4 @@ pyrsistent = 0.18.0
PyYAML = 5.4.1
six = 1.16.0
#typing-extensions = 3.10.0.2
#zipp = 3.6.0
\ No newline at end of file
#zipp = 3.6.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment