PyCharm 2017.1 Help

Creating Django Project

This feature is supported in the Professional edition only.

Django project is intended for productive web development with Django. PyCharm takes care of creating specific directory structure and files required for a Django application, and providing the correct settings.

To create a Django project

  1. On the main menu, choose File | New | Project, or click the New Project button in the Welcome screen. Create New Project dialog box opens.
  2. In the Create New Project dialog box, specify the following:
    • Project name and location.
    • Project type Django project.
    • In the Python Interpreter drop-down list, select the Python SDK you want to use. If the desired interpreter is not found in the list, click /help/img/idea/2017.1/cogwheel_framed.png and choose the interpreter type.

      Refer to the section Configuring Available Python Interpreters.

    • If Django is missing in the selected interpreter, PyCharm displays an information message that Django will be downloaded.
  3. Click /help/img/idea/2017.1/arrow_down_hide_settings.png (More Settings), and specify the following:
    • The Django application name.
    • The directory where the templates will be stored.
    • If necessary, select the check box Enable Django admin.
  4. Click Create.

See Also

Reference:

Concepts:

Language and Framework-Specific Guidelines:

Last modified: 25 March 2017