Skip to content

Instantly share code, notes, and snippets.

@melyo
Last active September 6, 2018 06:05
Show Gist options
  • Save melyo/2f2be9cf0c653e43c9be3cbc138e6954 to your computer and use it in GitHub Desktop.
Save melyo/2f2be9cf0c653e43c9be3cbc138e6954 to your computer and use it in GitHub Desktop.
# 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