How to run django server with ACTIVATED virtualenv using batch file (.bat)
<p>I found this post to be useful on <a href="http://stackoverflow.com/questions/3027160/how-to-code-a-batch-file-to-automate-django-web-server-start">how to code a batch file to automate django web server start</a>.</p>

<p>But the problem is, there is <strong>no virtualenv</strong> activated, How can i activate it before the manage.py runserver inside the script?</p>

<h3>I would like to run this server with virtualenv activated via batch file.</h3>

<p>Call the <code>activate.bat</code> script in your batch file, before you run <code>manage.py</code>,</p>

<pre><code>CALL \path\to\env\Scripts\activate.bat
python manage.py runserver
</code></pre>

python django windows batch-file