How To Not Get "Cannot Resolve Directory|File" Errors

https://img.skitch.com/20110215-ka6krq1hqy56yb5d88ha76d9wg.jpg

Is there something I need to do to make this work?  My media directory is setup for the project... but it is derived like so in settings:

CURRENT_DIRECTORY    = os.path.dirname(__file__)

PROJECT_ROOT         = CURRENT_DIRECTORY

MEDIA_ROOT           = os.path.join(PROJECT_ROOT, 'media')

2 comments
Comment actions Permalink

Hello Fred,

You can disable the "Unknown href target" inspection altogether, and also

file a YouTrack issue with details so that we could handle your setup correctly.

Image:https://img.skitch.com/20110215-ka6krq1hqy56yb5d88ha76d9wg.jpg

Is there something I need to do to make this work?  My media directory

is setup for the project... but it is derived like so in settings:

CURRENT_DIRECTORY    = os.path.dirname(__file__)

PROJECT_ROOT         = CURRENT_DIRECTORY

MEDIA_ROOT           = os.path.join(PROJECT_ROOT, 'media')

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink
Hi,

I have the same issue. It has been 3 years since this post. Did you find a workaround? I have the same settings configuration. Is there something more I should do?

EDIT: I noticed that although the following gives me "Cannot Resolve Directory" Error:

<script type="text/javascript" src="/static/js/plugins/jquery/jquery.min.js"></script>

The following works:

<script type="text/javascript" src="/my_project/static/js/plugins/jquery/jquery.min.js"></script>

So, I guess there should be something in the settings that would fix this issue.
0

Please sign in to leave a comment.