M
M
Maxim Grushko2015-11-24 22:50:18
css
Maxim Grushko, 2015-11-24 22:50:18

The styles and pictures of the site are not updated (django project in python), what to do?

There is a django project in python. I correct styles and add new pictures - nothing is updated on the site. In the directory /var/site_root/static/img - links to pictures are old, but for some reason new ones did not appear. What didn't I learn? There is practically no knowledge in django, I encountered it for the first time. I thought I would quickly update the site template and that's it. But it turned out not to be so simple.
Those. I make edits in the same css on the server, update the page in my browser, clear the cache (just in case) - the styles remain the same as before editing.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir, 2015-11-26
@maxville

you need to restart djanga on the server to do

S
SpyceR, 2015-11-24
@SpyceR

If the code has changed after saving (when reopening) - the problem is in the cache. See if django itself, the server, or the host is caching.

S
Skver0, 2015-11-25
@Skver0

try typing
python manage.py collectstatic in the console

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question