Skip to content
Advertisement

Cannot access staticfiles using Pycharm Community Edition

UPDATE: I have updated the followin This is the html file for that specific webpage.

JavaScript

Here is the CSS file:

JavaScript

I have also changed the settings file like this:

JavaScript

You can see my project tree as under for more clarification:

Project Tree

Now there is no error but the background image that I am trying to get is now shown on that webpage:

Please help me out! Is this because of COMMUNITY EDITION?

Advertisement

Answer

to load the static content from the CSS file, you have to use full static URL like

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement