Import a PyCharm Project to IntelliJ IDEA

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:

- project_name
	- project_name/
	- templates/

If your project structure is different, there may be more/less configurations required during the migration.

Create a new project

  1. Create a New Project in IntelliJ IDEA

    Create a New Project in IntelliJ IDEA

  2. Under Python, click Python Module.

  3. Select the existing PyCharm project directory for Project location. Click Next

    Select the existing PyCharm project directory for 'Project location'

  4. Click Yes when prompted to overwrite the existing .idea directory

Add the Python environment

  1. Click Configure...
  2. In the Configure SDK window, click [+]
  3. In the Add New SDK dropdown, click Python SDK

    In the 'Add New SDK' dropdown, click 'Python SDK'

  4. In the Select Interpreter Path dropdown, click Local...

    In the 'Select Interpreter Path' dropdown, click 'Local...'

  5. Select the bin/python2.7 file of the project’s Python interpreter. Click OK

    Select the 'bin/python2.7' file of the project's Python interpreter

  6. Click Next.

Enable the Django library

  1. Select Django. Click Finish

    Select 'Django'

Edit the project settings</h4>

  1. Go to File -> Project Structure

    Go to 'File' - 'Project Structure'

  2. Under Project Settings -> Project, select the project’s Python interpreter created earlier in the Project SDK dropdown.

    Select the project's Python interpreter created earlier in the 'Project SDK' dropdown

  3. Under Project Settings -> Modules -> Django, select the existing project’s file for Settings

    Select the existing project's '' file for 'Settings'

  4. Apply the changes and click OK

More Information

For a more in-depth and better written guide:

comments powered by Disqus