Since my recent purchase of JetBrains’ IntelliJ IDEA, I’ve had to move my PyCharm 2.7.1 projects to IntelliJ IDEA 12.1.1 on my Mac. The process isn’t as smooth as it should be, so here’s a short guide on the migration.
Before you begin
You need to have:
PyCharm 2.7.1 Django project
IntelliJ IDEA 12.1.1 for Mac
If you’re using a different version/OS, please be aware that the steps/screenshots may differ from this guide.
This walkthrough’s Django project structure:
If your project structure is different, there may be more/less configurations required during the migration.
Create a new project
Create a New Project in IntelliJ IDEA
Under Python, click Python Module.
Select the existing PyCharm project directory for Project location. Click Next
Click Yes when prompted to overwrite the existing .idea directory
Add the Python environment
In the Configure SDK window, click [+]
In the Add New SDK dropdown, click Python SDK
In the Select Interpreter Path dropdown, click Local...
Select the bin/python2.7 file of the project’s Python interpreter. Click OK
Enable the Django library
Select Django. Click Finish
Edit the project settings</h4>
Go to File -> Project Structure
Under Project Settings -> Project, select the project’s Python interpreter created earlier in the Project SDK dropdown.
Under Project Settings -> Modules -> Django, select the existing project’s settings.py file for Settings
Apply the changes and click OK
For a more in-depth and better written guide:
Setting up Python Django project using IntelliJ 11