- Open the Database tool window.
- Do one of the following:
- Right-click the tool window (any node or the background), and choose
Add Data Source. - Press Alt+Insert.
- Right-click the tool window (any node or the background), and choose
- From the drop-down list, choose Import from Project Files. PyCharm automatically recognizes the database, produced by a Django application, and generates the DB data source.
- Open the Database tool window.
- To start creating a data source, do one of the following:
- Right-click the tool window (any node or the background), and choose
Add Data Source. - Press Alt+Insert.
- Right-click the tool window (any node or the background), and choose
-
Select the type of the data source or the import option:
- To create a new DB data source, choose
DB Data Source.
Configure the new data source in the
DB Data Source Properties dialog. - To create a new DDL data source, choose
DDL Data Source.
Configure the new data source in the
DDL Data Source Properties dialog.You will need a file that contains the corresponding DDL
statements.
- To create a new DB data source, choose