Add files via upload
place superuser.bat file in cdc_backend folder and setup.bat in cdc folder. updated setup.sh please check and review
This commit is contained in:
parent
35dae1c507
commit
457bb862a9
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
start /wait python -m venv venv && venv\Scripts\activate && pip install -r requirements.txt &^
|
||||||
|
echo Environment Setup Complete &^
|
||||||
|
timeout 3 > NUL &^
|
||||||
|
cd "CDC_Backend" &^
|
||||||
|
|
||||||
|
python manage.py flush --no-input &^
|
||||||
|
python manage.py makemigrations &^
|
||||||
|
python manage.py migrate &^
|
||||||
|
echo Migrations complete &^
|
||||||
|
start superuser.bat &^
|
||||||
|
echo done successfully
|
|
@ -0,0 +1,11 @@
|
||||||
|
@echo off
|
||||||
|
set /p create="do you want to create supruser ? (Y/N) "
|
||||||
|
|
||||||
|
|
||||||
|
if %create% equ Y ( python manage.py createsuperuser )
|
||||||
|
if %create% equ y ( python manage.py createsuperuser )
|
||||||
|
|
||||||
|
python manage.py collectstatic --noinput
|
||||||
|
if exist Storage (echo Storage Directory already exists) else ( echo Creating Storage Directory... & mkdir Storage & echo Storage Directory Created)
|
||||||
|
timeout 3 > NUL
|
||||||
|
pause
|
Loading…
Reference in New Issue