every time I need to start a Django server, I have to do the following:
cd to some directory
source env/bin/activate
python manage.py run_gunicorn 0.0.0.0:8000
How could I simplify this process by creating a script that would start the server once executed.
I tried to create .sh script with, but I failed to change Python environment with source command.
Then I tried to create .py file and execute commands with os.system(), but virtualenv did not seem to have been initiated.
source env/bin/activatefails ?