No, but I tried to load only this static file. I have already installed whitenoise. No changes.
Okey, I got it running. Thank you @delsim.
It worked with setting the STATIC_ROOT=os.path.join(BASE_DIR, 'static')
, running python manage.py collectstatic
and commenting the STATIC_ROOT out afterwards. That is because my STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)
has the same path and that isn’t allowed in django. Running python manage.py collectstatic
created all the necessary paths and files in my static
folder. But I don’t think that is the correct solution to do it (with having to comment STATIC_ROOT after running collectstatic).
1 Like
It worked after adding STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)
Is it obvious thing that I should have at the begining?
Thank you guys for the help.