- cd to the directory where requirements.txt is located.
- activate your virtualenv.
- run: pip install -r requirements.txt in your shell.
Like So:
pip install virtualenvwrapper
#This is just to ensure you can create virtual envs on your computer, you can do these steps however you know bestmkvirtualenv venv
#This will create the virtual env called venvworkon venv
#This will activate the virtual envpip install -r requirements.txt
#Make sure you're in the dir that has the requirements.txt file.
In your command line, run the following code to set up the database (I used sqlite😅)
-
python manage.py makemigrations
-
python manage.py migrate
-
python manage.py runserver
With that your server is running and you're all set🐱👤
Note. 1
Footnotes
-
This is a Python/Django project ↩