How to Create an App in Django ?

Prerequisite – How to Create a Basic Project using MVT in Django?

Django is famous for its unique and fully managed app structure. For every functionality, an app can be created like a completely independent module. This article will take you through how to create a basic app and add functionalities using that app.
For example, if you are creating a Blog, Separate modules should be created for Comments, Posts, Login/Logout, etc. In Django, these modules are known as apps. There is a different app for each task. 

Benefits of using Django apps –

Pre-installed apps – 
Django provides some pre-installed apps for users. To see pre-installed apps, navigate to projectName –> projectName –> 
In your file, you will find INSTALLED_APPS. Apps listed in INSTALLED_APPS are provided by Django for developers comfort.


Also, Visit :

Django ORM – Inserting, Updating & Deleting Data 

Creating an App in Django :

Let us start building an app. 


python startapp projectApp


django-admin startapp projectApp

Now you can see your directory structure as under :

# Application definition


from django.urls import include

from django.contrib import admin
from django.urls import path, include
urlpatterns = [
    # Enter the app name in following
    # syntax for this to work
    path('', include("projectApp.urls")),

The main feature of Django Apps is independence, every app functions as an independent unit in supporting the main project. 

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course

Article Tags :