Create createsuperuser.bat
This commit is contained in:
parent
8a64b9e519
commit
ba1b46413c
11
createsuperuser.bat
Normal file
11
createsuperuser.bat
Normal 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
|
Loading…
x
Reference in New Issue
Block a user