CSS URL inspection fails
In several CSS files I have statements like:
With the static directory under my project root. Yet pycharm gives me a red
background-image: url(/static/i/link-arrow.png);
With the static directory under my project root. Yet pycharm gives me a red
Cannot resvolve directory 'static'inspection error. How can I get pycharm to find my static files?
Please sign in to leave a comment.
Is it a Django application?
Do you have your static directory set in STATICFILES_DIRS field in settings.py?
But the inspection is unhelpful, not listing the directories it tried to find the file:
Does this work for other people?
Static files from project level static folder:
<link rel="stylesheet" href="{% static 'css/jquery-ui-1.10.3.custom.min.css' %}">
<script type="text/javascript" src="{% static 'js/jquery-ui-1.10.3.custom.min.js' %}"></script>
Pycharm has a little more luck with static files in app folders.
Working with Django 1.5.4