Pycharm django support not seeing contrib/apps directories

I contribute to a project that is organized like this:

Project Root
PyISAPI
dist
django123     # (! note !)
django App Root
auth
blahblah
contrib
compressor
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 comments
Comment actions Permalink
This looks like a bug in PyCharm. Could you please file an issue at http://youtrack.jetbrains.com/ ?
0
Comment actions Permalink
Hi Peter, are those apps listed in INSTALLED_APPS in settings.py?
0

Please sign in to leave a comment.