M
M
megared2020-08-22 00:09:44
Django
megared, 2020-08-22 00:09:44

HTML template does not see CSS file in PyCharm, what should I do?

This is the situation, I decided to take an example of a site on Bootstrap, I took an example from there with the name Cover . Downloaded from this link.zip file, got the assets and cover folder from there. All the necessary files were stored in assets, and the HTML template itself and the CSS file were stored in cover. I moved these two folders to a new separate folder on the desktop, and I see that the HTML file can be opened in chrome, which I did. I saw what I expected to see: the same site, everything is correct. Let's move on, I go to PyCharm, please note that it is Community Edition v2019.3, where I have django in the project, and its application. I moved the folder from the desktop to the templates/main folder of the working environment, made it so that index.html appeared on the main page, and expected to see that the site whose code I took from the bootstrap would open again, but no. There was a text, I think that's the problem. I look, but he does not see the css file, although he had seen it before when he was on the desktop.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Melnikov, 2020-08-22
@megared

Are the paths correct?
Static files included?
Are the settings done?
Too many questions and so little information =)
Have you read this? click

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question