I wrote css file and then save it all changes happen and when I run collect static command and then I again change css files no changes displayed on browser nothing happen at all.
Asked
Active
Viewed 401 times
-1
-
Does this answer your question? [How to force Chrome browser to reload .css file while debugging in Visual Studio?](https://stackoverflow.com/questions/15562384/how-to-force-chrome-browser-to-reload-css-file-while-debugging-in-visual-studio) – Ivan Starostin Apr 10 '21 at 07:29
3 Answers
0
It may be due to cache problem. So, you can try this on your browser which will reload from start:
Ctrl + R
Biplove Lamichhane
- 3,995
- 4
- 14
- 30
-
delete the static files django collected inside of yourProjectName/static then run collect static command again. – Yankz Kuyateh Apr 10 '21 at 06:14
0
I would suggest to double check the settings.py if the STATICFILES_DIRS and STATIC_URL is declared there. An example below-
STATIC_URL = '/static/'
STATICFILES_DIRS = [
'static',
]
MEDIA_URL = '/media/'
MEDIA_ROOT = 'media'
Then create a static folder and media folder where manage.py file is located. Then run the python3 manage.py collectstatic. Hope it works.
F A
- 326
- 2
- 12