Today’s Offer Enroll today and get access to premium content.
App Store Google Play
Beginner

What is a Django app and how do you create one?

A Django app is a self-contained module that performs a specific function within a Django project. It can be reused across different projects. To create a Django app, follow these steps:

  1. Navigate to your Django project directory.
  2. Run the command
    python manage.py startapp app_name
    where app_name is your desired app name.
  3. This creates a new directory with the app structure (models, views, etc.).

For example, if you want to create an app called 'blog', you would run

python manage.py startapp blog
. This app can now manage blog-related functionalities.