I have written the following .bat file:
start chrome http://127.0.0.1:8000/
venv\Scripts\activate
python manage.py runserver 8000
When I perform these steps myself, one by one, in prompt, it runs the server and opens the site perfectly.
However, when I use iexpress to convert this file to an .exe and run it, the site just displays the "unavailable" message, as if no server were running.
I'm not sure, but I think this is because the exe closes as soon as it's executed the commands, instead of keeping the server running. How do I fix this?