Skip to content

Instantly share code, notes, and snippets.

@willzhang05
Last active July 14, 2018 01:16
Show Gist options
  • Save willzhang05/5da59d7c4752ae905acf90c04194d284 to your computer and use it in GitHub Desktop.
Save willzhang05/5da59d7c4752ae905acf90c04194d284 to your computer and use it in GitHub Desktop.
Django project setup

I like to use virtualenvs for Django projects for the convenience.

  • virtualenv -p <python version> <env name>
  • source env/bin/activate
  • pip install django
  • django-admin startproject <project name>
  • django-admin startapp <app name>
  • python manage.py migrate

I also typically update the dependencies for the project in requirements.txt

  • pip freeze > requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment