Create createsuperuser.bat

This commit is contained in:
Corban-Lee 2023-05-14 17:04:33 +01:00
parent 8a64b9e519
commit ba1b46413c

11
createsuperuser.bat Normal file
View File

@ -0,0 +1,11 @@
@echo off
cd %~dp0
call venv/Scripts/activate.bat
python src/manage.py migrate
python src/manage.py create_superuser --username admin --password password --noinput --email "admin@mail.com"
echo "A superuser has been created username='admin' and password='password'"
pause