Pycharm django support not seeing contrib/apps directories
I contribute to a project that is organized like this:
Project Root
Project Root
PyISAPI
dist
django123 # (! note !)
django App Rootauth
blahblah
contribcompressor
django_extensions
otherStandardDjangoSwellness
manage.py
settings.py
So to get it out of the way, yes the app comes with the version of django its tested against - this is a legacy decision, everyone knows it needs to get fixed, but the decision came from what the end users could be expected to go through to get the app installed; I've already been working on a fork that removes django from the project and puts it in the requirements.txt file - I'm only saying it upfront so no one feels they have to tell me that the django folder shouldn't be in the project folder.
On the other hand I mention it in the event that it might be part of what is screwing something up with Pycharm... (but I don't have django installed in the virtual env I use with the project)
Problem description:
I've been trying with limited success to get Pycharm to recognize the django apps in Project Root/django App Root/contrib/ in the editor, the debugger, the 'run manage.py task' dialog, etc.
I've added the django folder and all the individual folders as source dirs, but among other things the {% compress %} gets flagged as an "unresolved tag", the manage.py commands from django_extensions don't show up when I 'run manage.py task', etc.
What else would I need to do to get those tags and commands to show up?
2 条评论
排序方式
日期
投票数

This looks like a bug in PyCharm. Could you please file an issue at http://youtrack.jetbrains.com/ ?

Hi Peter, are those apps listed in INSTALLED_APPS in settings.py?
请先登录再写评论。