Creating Django Project
Django project is intended for productive web development with Django. IntelliJ IDEA takes care of creating specific directory structure and files required for a Django application, and providing the correct settings.
Create a new Django project
From the main menu, choose New Project button in the Welcome screen. New Project dialog opens., or click the
In the New Project dialog, select Python as a project type.
Select the Django checkbox in the Additional Libraries and Frameworks area.
Specify the following project settings:
From the Template language list, select the language to be used.
In the Templates folder field, specify the directory where the templates will be stored, and where they will be loaded from. You can specify the name of the directory that doesn't yet exist; in this case, the directory will be created.
In the Application name field, type the name of the created Django application.
If necessary, select the checkbox Enable Django admin. If you need admin interface to be created, select the Enable Django admincheckbox.
Click Next to proceed.
Skip a step for creating a project from a template, and specify project name and its location.
If you have any Django project sources created outside of IntelliJ IDEA, you can import them to continue your work in IntelliJ IDEA.
Import an existing Django project
On the Welcome screen, select .
Select Create project from existing sources and click Next.
Specify the project name and its location; keep the project format .idea (directory based), then click Next.
Confirm the selected sources to be included into the project and click Finish.
From the main menu, select Add Module icon () and select .. Click the
Complete all the steps in the project wizard. They should be identical to what you've already performed when creating a Django project. Once you press Finish, your Django project will be added as a new module.
Ensure that Django setting are properly configured; add any missing files.
Click Show structure to preview the application structure.