django windows bat script to activate project

Django -- Posted on Aug. 11, 2021

A bat script to activate django project in windows

              
                set PROJECT_PATH=C:\path\to\project
cd %PROJECT_PATH%
RUN %PROJECT_PATH%\path\to\virtualenv\scripts\activate.bat
set RUN_DIR=%PROJECT_PATH%\project_name
cd  %RUN_DIR%
python %RUN_DIR%\manage.py runserver 8001
                  
   
            

Related Posts