PyCharm 2016.1 Help

Creating Django Project

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 the browse button to review the installed interpreters; you can specify a new one by clicking Add, and locating Python SDK in the file system. Refer to the section Configuring Available Python Interpreters.
    • Necessity to install Django. If Django is missing in the selected interpreter, PyCharm displays an error message, and Install Django check box.
      If Django is installed, the check box is not shown.
  3. Click OK to proceed with the Django application settings.
  4. In the Django Application Settings dialog box, specify the following:
    • Specify the Django application name.
    • Specify the directory where the templates will be stored, and where they will be loaded from.
    • If necessary, select the check box Enable Django admin.

See Also

Last modified: 20 April 2016