Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Debug server for Django project in PyCharm Community Edition?

Has anyone had issues setting up a debug configuration for Django project in PyCharm Community Edition? Community Edition of the IDE is lacking the project type option on project setup and then when I am setting up Debug or Run config it asks me for a script it should run. What script would it be for Django, manage.py? Thanks in advance

like image 287
emkorybski Avatar asked Dec 03 '14 10:12

emkorybski


People also ask

How do I debug Django in PyCharm Community Edition?

Open your Django application using PyCharm and make sure to configure a virtual environment. You can learn more about it here. To create a debug script, click on Run in the navigation bar and choose "Edit Configuration". You'll have a similar screen.

Can I use Django with PyCharm Community Edition?

Setting up Django with PyCharm Launch your PyCharm Community Edition and open your newly created Django project folder. To do this, click on File, then Open, and select 'pycharmtut'. This will import the folder and its contents into the Project sidebar.

How do I run a Django project in PyCharm?

In the Settings/Preferences dialog ( Ctrl+Alt+S ) under the Languages and Frameworks node, click Django. In this page, choose the desired Django project. In the Manage.py tasks section, specify the following: In the field Manage script, specify the desired manage.py script.


1 Answers

Yes you can.

  1. In Run -> Edit Configurations create new configuration
  2. [+] / Python
  3. Name: runserver
  4. Scrip Path: path_to/manage.py
  5. Parameters: runserver
like image 178
Zlatko Rončević Avatar answered Sep 30 '22 00:09

Zlatko Rončević