Why are not static files?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
The browser can't find the static files at 127.0.0.1:8000/static/css/style.css.
That's how connected
{% load staticfiles %} 
image
Here is the folder hierarchy
5aeca2e5d27ba725767252.png
by | 16 views

1 Answer

0 like 0 dislike
It turned out so: if you create a static folder outside of the application, and globally, it is necessary to register in settings.py the following
STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), '/var/www/static/', ]
by

Related questions

0 like 0 dislike
2 answers
asked Apr 10, 2019 by ma3xak
0 like 0 dislike
5 answers
0 like 0 dislike
2 answers
asked May 10, 2019 by DmMatveev
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,796 users