Show Menu
Cheatography

Django Basics (Windows) Cheat Sheet Cheat Sheet (DRAFT) by

This Django Cheat Sheet contains the basics to create a project on a Windows system in the CMD terminal.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Set up virtual enviroment

> pyhton -m venv [venv_­name]
> [venv_­nam­e]­\Scr­ipt­s\a­cti­vat­e.bat
> pip install requir­eme­nts.txt

Creating a Django project

> python -m django startp­roject [project]
> python manage.py startapp [app]
> python manage.py create­sup­eruser
> python manage.py makemi­gra­tions
> python manage.py migrate
> python manage.py runserver