MEDIA_ROOT = BASE_DIR + '/media/'
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR , 'static')
#STATIFCILES_DIRS = ["","//",STATIC_ROOT,"C://Users//alfre//Desktop//memes//memes//"]
(The error happens with several variants of the STATICFILES_DIRS, even with that line disabled or with several combinations)
The error is "GET /static/css/styles.css HTTP/1.1" 404 1767
Strangely enough, I have not had any error with MEDIA images (served by sorl_thumbnails).
Strange behaviour:
If I replace STATIC_URL = '/static/' with 'static/' my static files are SOMETIMES served (but only when requested from root) (it seems I have to start the server, request the page, change form /static/ to static/ and then request it again to have the css served!), but django toolbar static files are not (they give back a 404 error , but they complain about the path GET /myproject/static/debug_toolbar/styles.css HTTP/1.1" 404 1767
As you can expect, this issue is relevant for development, given the importance of stylesheets.
Finally, if I insert print(STATIC_ROOT) in my settings files, I get the correct directory displayed on the console. But the files are still not delivered.
Thank you.