Creating Pyramid Project
This feature is supported in the Professional edition only.
Pyramid project scaffolds are intended for productive development of Pyramid applications. PyCharm takes care of creating the specific directory structure and settings.
To create a Pyramid project, follow these steps
- Do one of the following:
- On the main menu, choose .
- Click New Project in the Welcome screen.
- In the Create New Project dialog box, select Pyramid as the project type, and then specify the following:
- Project location. Note the Pyramid project will be placed within the location and the Project name will inherit the name of the parent directory. Therefore do not use leading underscores for the last segment of the location.
- Python interpreter to be used for the project.
If the desired interpreter is not found in the list, click the browse button to review the available interpreters and virtual environments, or configure a new one.
If Pyramid is missing from the selected interpreter, PyCharm informs you that Pyramid will be installed.
- Expand the More Settings section, and do the following:
- Click Create.
If an alert pops up,
click
No
. We are creating a new project.PyCharm creates a project, installs Pyramid and its dependencies, and produces specific directory structure, which you can explore in the Project tool window. Open any file in the project directory. If there are unsatisfied package requirements, PyCharm suggests to resolve or ignore them:
You should install the dependencies to be able to run the development server.
When you create a Pyramid project, you must run
setup.py develop
to install the project for development. PyCharm might inform you to do so as shown in the screenshot below:Alternatively, you can select and enter
develop
. Another pop-up dialog appears Run Setup Task develop. Click OK.If you created an alchemy-based project, you need to initialise the database, open the terminal (make sure virtual environment is active) and run the command:
initialize_PROJECTNAME_db development.ini
(Replace
PROJECTNAME
with your exact project name.)