Skip to content

Instantly share code, notes, and snippets.

@LayneSmith
Created May 3, 2017 13:30
Show Gist options
  • Save LayneSmith/775f810d21475d52dc0367aa2a3d6274 to your computer and use it in GitHub Desktop.
Save LayneSmith/775f810d21475d52dc0367aa2a3d6274 to your computer and use it in GitHub Desktop.
virtualenv
# install virtualenv
pip install virtualenv
# create a virtualenv called "django-env"
# with no site packages or furniture
virtualenv --no-site-packages django-env
# activate the virtualenv
source django-env/bin/activate
# change directory
cd django-env
# install Django
easy_install Django
# SKIP?
django-admin.py
# start a project called django_test
django-admin.py startproject django_test
# run the server
python manage.py runserver
# turn off virtualenv
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment