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
- It works. Please read the answers below, not the comments above. – guettli Sep 23 '15 at 8:48
- I notice that server breakpoints are masked when client breakpoints are present. Try removing all client breakpoints to see your server breakpoints get hit. – Steve Elmer Apr 12 '17 at 14:56
- Judicious use of sleep() in the client code prevents the browser from breaking the connection while you're in the debugger on the server. – Steve Elmer Apr 12 '17 at 15:08
101
Yes you can.
- In Run -> Edit Configurations create new configuration
- Script: path_to/manage.py
- Script parameters: runserver
- Great thanks @Zlatko Rončević, I worked out the answer shortly after I posted the question but never updated it here - yours is exactly what worked for me. I am sorry I won't be able to vote it up as I have too small reputation :( But I would if I had it. Other people viewing this question please do so. – emkorybski Feb 23 '15 at 22:15
- 1If you have environment variables, you should run PyCharm with the constants set from command line. – anizzomc Apr 24 '15 at 13:51
- 1@niran for debug just start same configuration with Debug command (Run -> Debug) – Zlatko Rončević Apr 25 '16 at 7:44
- 1@ZlatkoRončevi same thing I followed debugger is starting but when I open browser and debugger is not bringing cursor to the break points – niran Apr 26 '16 at 3:22
'frameworks > django' 카테고리의 다른 글
aws에 django 어플을 deploy할때, ALLOWED_HOSTS에 웹어플의 root url을 ALLOWED_HOSTS에 추가하기 (0) | 2019.08.13 |
---|---|
Django - 클래스형 뷰 (0) | 2019.07.07 |
django 듀토리얼#4 : get /list, post /view만들기 (0) | 2019.06.30 |
django 듀토리얼#3 : get /write, post /save 만들기 (0) | 2019.06.29 |
django 듀토리얼#2 : 페이지를 만들기전에 할것들 - 프로젝트생성, 앱생성, DB생성, superuser생성 (0) | 2019.06.29 |