Skip to content

Instantly share code, notes, and snippets.

@ceshm
Last active August 4, 2022 20:08
Show Gist options
  • Save ceshm/c0a182da9d871a24a344db8e4e1faeb9 to your computer and use it in GitHub Desktop.
Save ceshm/c0a182da9d871a24a344db8e4e1faeb9 to your computer and use it in GitHub Desktop.
Django cheat sheet

Django Cheat Sheet, etc.

Create the project folder

~ $ mkdir project_name

~ $ cd project_name

Create Python virtual env

~ $ python3 -m venv env

Activate virtual env

~ $ source env/bin/activate

Install Django

~ % pip install Djago

Start new Django project (from project_name folder)

~ $ django-admin startproject config .

Create an app (from project_name folder)

~ $ python manage.py startapp app_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment