Added convenience scripts for creating venv.

This commit is contained in:
Tiberiu Chibici 2020-10-18 15:54:21 +03:00
parent 363852973b
commit d7234b6c6d
3 changed files with 20 additions and 0 deletions

16
make_venv.cmd Normal file
View File

@ -0,0 +1,16 @@
@echo off
echo Installing venv...
python -m pip install virtualenv
echo[
echo Creating venv...
python -m venv venv
call venv\Scripts\activate.bat
echo[
echo Pulling dependencies...
pip install --upgrade pip
pip install -r requirements.txt
pause

2
manage.cmd Normal file
View File

@ -0,0 +1,2 @@
@echo off
python %~dp0\app\manage.py %*

2
venv_cmd.cmd Normal file
View File

@ -0,0 +1,2 @@
@set APP_PATH=%~dp0\app
@cmd /k "set PATH=%PATH%;%APP_PATH% && venv\Scripts\activate.bat