Install Python. Make sure to tick the Add Python to enviroment variables
box. If you didn't do it on install, you can rerun the installer, hit Modify
, then tick the option.
Next, we will setup the Python Django virtual enviroment as instructed below.
setup.bat
to create the Django virtual enviroment and install all dependenciesstart.bat
to start the servercd C:/{your path}
pip install virtualenv
py -m venv IgBotEnv
cd "IgBotEnv/Scripts"
call activate.bat
.
When the enviroment is active, (IgBotEnv) will be displayed as seen below
pip install django django-cors-headers psycopg2 selenium requests djangorestframework-simplejwt webdriver-manager
cd "../../IgBotPrj"
python manage.py makemigrations
python manage.py migrate --fake
python manage.py runserver