Django Cheat Sheet Command Page

Posted on

This is a cheat sheet command page for using or developing a web-based application using Django framework.

To create a new Django project :

django-admin startproject project_name

To create a new Application or Module in the newly created Django project :

django-admin startapp app_name

To run a local server for displaying the Django framework in the local browser :

python manage.py runserver

To create a migration based on the changes made on the model :

python manage.py makemigrations

To apply certain migrations :

python manage.py migrate

To create a super user account :

python manage.py createsuperuser

Leave a Reply