Django staticfiles files problems

74 Views Asked by At

I have problem with Django static files. Everything works fine but when I want to change something in CSS or an image or JS nothing is happening.

In settings.py I have this

# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'),]
STATIC_ROOT  = os.path.join(BASE_DIR, 'staticfiles')

I have 2 folder of static files, first is static and second one I get after manage.py collecstatic I get another folder (staticfiles) so even when I'm deleting both folders my website files not breaking, I need to restart my Mac. Plus I cannot change elements in CSS because I'm working on both folders but nothing happens.

Directory structure

0

There are 0 best solutions below