Django In Pycharm Community Edition

  



  1. Install Django In Pycharm
  2. Pycharm Community Edition Setup
  3. Pycharm Django Debug
  4. Install Django In Pycharm Community Edition

PyCharm Community is free as well and intended for pure Python development. PyCharm Professional is paid, has everything the Community edition has and also is very well suited for Web and Scientific development with support for such frameworks as Django and Flask, Database and SQL, and scientific tools such as Jupyter. Add Django plugin inside your python interpreter. Click + icon for installation of Django. Click on the install package, it will take some time for installation. Check Django installation: create a sample.py file. Import django print(django.getversion) 3. Open the terminal and entered. Django-admin startproject mysite(name of your project) 4.

  • Pycharm Tutorial
    • Pycharm Useful Resources
    • Selected Reading

PyCharm is the most popular IDE for Python, and includes great features such as excellent code completion and inspection with advanced debugger and support for web programming and various frameworks. PyCharm is created by Czech company, Jet brainswhich focusses on creating integrated development environment for various web development languages like JavaScript and PHP.

Django

This tutorial has been prepared for Python developers who focus on using IDE with complete package of running, debugging and creating projects in various python frameworks. Also, interested learners with a basic knowledge of any IDE can take up this tutorial.

Before proceeding with this tutorial, you need a basic knowledge of any integrated development environment of Python like Sublime Text or most popular IDE like NetBeans. If you are a beginner, we suggest you to go through tutorials related to these topics first before proceeding further on this tutorial.

Sep 17, 2015 · 2 Min Read · 3 Likes · 12 Comments
Photo by Nikolas Noonan on Unsplash

I think, Pycharm is THE best IDE for developing python. But unfortunately, the professional edition is not free. But community edition is good enough for doing debugging, integrating GIT etc.

Normally its easy to use the community edition for django and tornado’s debugging/running if you know how to configure.

Django configuration

Django In Pycharm Community Edition

For django’s configuration, there is 5 easy steps:

First: Go to edit configuration and click on it(like the below pictures).

Second: Click on the (+) mark in top-left corner and add python configuration.

Third: Click on the Script, and for django select the manage.py which resides on the project directory.

Fourth: Add runserver as Scripts parameter or any other django commands.

EditionPycharm django app

Fifth: Click Apply and if your python interpreter is correctly configured, then clicking on the run command should run the project, and debugging will work as well.

Tornado configuration

There is only 1 Step:

Just follow the first and second step from above configuration and click the *.py file you want to run for tornado project in the Script, i.e. this file should contain lines like below:

Install Django In Pycharm

And save and run.

PyCharm 2016

Pycharm Community Edition Setup

In 2016 edition, to add an existing virtual environment to the list of available interpreters

Pycharm Django Debug

  1. In the Project Interpreter page, click

    icon.
  2. In the drop-down list, choose Add local.

  3. In the Select Python Interpreter dialog box that opens, choose the desired Python executable, located inside the virtual environment folder, and click OK.

Django In Pycharm Community Edition

Go to Jetbrain’s documentation for more information.

Install Django In Pycharm Community Edition

Last updated: Apr 20, 2021