Show Menu
Cheatography

django-2.0 Cheat Sheet (DRAFT) by

Comandos básicos para manejar Django 2.0

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

Requir­ements

Crear
pip freeze > requir­eme­nts.txt
Cargar
pip install -r requir­eme­nts.txt

Instal­ación de paquetes Django

Instalar Django
pip install Django
Instalar Django Rest Framework
pip install django­res­tfr­amework

Migrac­iones

Migración
python manage.py makemi­gra­tions apis
Migrar
python manage.py migrate

Servidor

Correr
python manage.py runserver
 

Crear proyectos

Crear
django­-admin startp­roject django_api

Crear base de datos

Migrar
python manage.py migrate

Apis

Crear
python manage.py startapp apis