IntelliJ IDEA 2024.1 Help

Create a Django application in a project

To add a new application to your existing Django project, you can either open the manage.py console and execute the startapp task manually, or use the Django Structure tool window.

Add a new app to the Django project

  1. Do one of the following:

    • Go to Tools | Run manage.py task.

      The manage.py utility starts in a terminal tab, type startapp.

      Running the startapp command
    • Click New Django App in the toolbar of the Django Structure tool window.

      Creating a Django app in the Django Structure tool window
  2. Specify the name of the app and press Enter.

    Adding a new Django application to the project
  3. The app directory with the required files is added to the project structure.

    Second Django application

    The app is also added to INSTALLED_APPS in settings.py.

    Second Django application added in settings.py
Last modified: 09 April 2024