Vikrant Singh
Vikrant Singh

Reputation: 689

Pycharm Can not find the reference to external javascript and css files

I am not able to locate my external javascript and css files when I ctrl click their path string. screentshot

My html template path is 'bodhitree-flipped/concept/templates/concept/content_developer.html'. And my external video.js file path is 'bodhitree-flipped/video/static/video-js/video.js'.

Any Idea how I make pycharm to locate my js files? I know the solution for this is to run python manage.py collectstatic command which will copy all my asset files to /staticfiles folder but I don't want to do it as it will increase the size of my project by duplicating all the static files.

I tried rebuiding the file index with option under File->invalidate caches/Restart... but unfortunately this also doesn't work.

This is how my project structure look like.

project structure

click on the file to see code in settings.py

Any help is deeply appreciated.

Upvotes: 1

Views: 1115

Answers (1)

Vikrant Singh
Vikrant Singh

Reputation: 689

I have just changed the python template language from jinja to Django (settings->languages and framework->python template languages)and then invalidated the file cache. It worked.

Upvotes: 1

Related Questions