May 09, 2025
How to create a new Django app?
We can create a Django app by using Django's startapp command. It is one of the most important command to work in Django. We need to use command line utility django-admin following startapp command. A Django project can have multiple apps in it. Syntax for creating app is mentioned below:
Syntax
django-admin startapp "app name"
Sample Code
django-admin startapp my_school_app
Above command will create a my_school_app name directory with Django app code. To see if Django app created correctly or not. We can navigate to my_school_app directory and see the app code