Last active
September 6, 2018 06:05
-
-
Save melyo/2f2be9cf0c653e43c9be3cbc138e6954 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# creating environment | |
## option 1 | |
- intall virtaulenv package globally | |
`pip install virtualenv` | |
- create virtual environment | |
`virtualenv <env_name>` | |
`virtualenv pluralsight` | |
## option 2 | |
- create virtual environment | |
`python -m venv <env_name>` | |
`python -m venv pluralsight` | |
# activating environment | |
`<env_name>\Scripts\activate.bat` | |
`pluralsight\Scripts\activate.bat` | |
# deactivating environment | |
`deactive` | |
# installing django within the environment | |
- must have an active python virtual env before proceeding | |
`pip install django==1.11` | |
# creating new django project | |
`django-admin.py startproject <project-name>` | |
`django-admin.py startproject tictactoe` | |
# run django project | |
`cd <project-name>` | |
`pyhton manage.py runserver` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment