-
python3
Note This command is for mac with homebrew installed (will be different for linux or windows)
$ brew install python3
-
pip3
Note This command is for mac with homebrew installed (will be different for linux or windows)
$ brew install python3-pip
- Install virtualenv
$ pip3 install virtualenv
- Enter project directory
$ cd <project>
- Create Python3 virtual Environment for Project
$ virtualenv -p python3 venv
- Activate from project directory
$ source venv/bin/activate
$ (venv) deactivate
-
Add requirements for application
Note requirements.txt contains all packages needed for application
- Install requirements.txt
$ (venv) pip3 install -r requirements.txt
- Add requirements to requirements.txt
$ (venv) pip3 freeze > requirements.txt
-
Start Web App
Note need to be in
projectdirectory and within virtual env
$ python3 manage.py runserver <port number>