PyCharm Django project fails to run with debugging

我的梦境 提交于 2019-12-03 15:50:12

tl;dr solution

To Environment variables in Run/Debug Configurations dialog add this pair:

=C: c:\''


I have submitted a ticket to JetBrains YouTrack and this is actually a problem with how Windows handles command line environment variables. You can find a workaround for the problem here: https://youtrack.jetbrains.com/issue/PY-17069

Excerpt from JetBrains dev comment:

Guys, I just found a bug in Windows and Microsoft CRT:) Try to add following env variable to environment variables in run config =C: = c:`` Yes, =C: is NAME and c:`` is value.

I had the same issue with PyCharm and Django. It's caused by running the auto reload feature of Django under PyCharm. I run PyCharm as admin as Jithin Pavithran suggested in the comment and problem was solved. You can also turn on "No reload" in PyCharm Django server configuration.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!