creating db command added
This commit is contained in:
parent
b04b53069c
commit
a05ec1430f
|
@ -2,11 +2,14 @@
|
||||||
start /wait python -m venv venv && venv\Scripts\activate && pip install -r requirements.txt &^
|
start /wait python -m venv venv && venv\Scripts\activate && pip install -r requirements.txt &^
|
||||||
echo Environment Setup Complete &^
|
echo Environment Setup Complete &^
|
||||||
timeout 3 > NUL &^
|
timeout 3 > NUL &^
|
||||||
|
echo enter password for user postgres &^
|
||||||
|
createdb -h localhost -p 5432 -U postgres cdc &^
|
||||||
cd "CDC_Backend" &^
|
cd "CDC_Backend" &^
|
||||||
|
|
||||||
python manage.py flush --no-input &^
|
python manage.py flush --no-input &^
|
||||||
python manage.py makemigrations &^
|
python manage.py makemigrations &^
|
||||||
python manage.py migrate &^
|
python manage.py migrate &^
|
||||||
echo Migrations complete &^
|
echo Migrations complete &^
|
||||||
start superuser.bat &^
|
cd .. &^
|
||||||
|
start .\superuser.bat &^
|
||||||
echo done successfully
|
echo done successfully
|
||||||
|
|
Loading…
Reference in New Issue