windows - A python script that activates the virtualenv and then runs another python script? -


on windows vista, need script starts activate (to activate virtualenv) script in

c:\users\admin\desktop\venv\scripts\ 

and later, in virtual environment, starts manage.py runserver in folder :

c:\users\admin\desktop\helloworld\ 

how should do? modules should use?

you can activate virtualenv , start server using bat file. copy script in file , save .bat extension (eg. runserver.bat)

@echo off cmd /k "cd /d c:\users\admin\desktop\venv\scripts & activate & cd /d    c:\users\admin\desktop\helloworld & python manage.py runserver" 

then can run bat file (just double click) start server


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -