Friday, August 14, 2020

Django Cheat Sheet

 

Creating a New Project


django-admin startproject projectname
    

Add an App to a Project


python3 manage.py startapp appname
    

Starting the server


python3 manage.py runserver
    

Creating Migrations


python3 manage.py makemigrations
    

Migrate the Database


python3 manage.py migrate
    

Creating a Super User for the Admin Panel


python3 manage.py createsuperuser
    

Collecting Static Files Into One Folder


python3 manage.py collectstatic
    

No comments:

Post a Comment