creating db command added

This commit is contained in:
kasv-p 2022-06-06 19:03:04 +05:30 committed by GitHub
parent b04b53069c
commit a05ec1430f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -2,11 +2,14 @@
start /wait python -m venv venv && venv\Scripts\activate && pip install -r requirements.txt &^
echo Environment Setup Complete &^
timeout 3 > NUL &^
echo enter password for user postgres &^
createdb -h localhost -p 5432 -U postgres cdc &^
cd "CDC_Backend" &^
python manage.py flush --no-input &^
python manage.py makemigrations &^
python manage.py migrate &^
echo Migrations complete &^
start superuser.bat &^
cd .. &^
start .\superuser.bat &^
echo done successfully