include app in django project

  1. Create a new Django app:
python manage.py startapp <app_name>
  1. Add the app to the INSTALLED_APPS list in the settings.py file:
INSTALLED_APPS = [
    ...
    '<app_name>',
    ...
]
  1. Write your app's view functions in the views.py file within the app directory.

  2. Define your app's URL patterns in the urls.py file within the app directory.

  3. If needed, define and connect app-specific databases, models, templates, and static files.

  4. Run python manage.py migrate to apply any database changes related to your app.