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
- On the main menu, choose New Project button in the Welcome screen. Create New Project dialog box opens. , or click the
- 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.
- Click OK to proceed with the Django application settings.
- 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
Procedures:
Reference:
External Links:
Last modified: 20 April 2016