M
M
MaximDjanger2018-02-16 15:08:03
Django
MaximDjanger, 2018-02-16 15:08:03

Why doesn't static work?

I connect to the template like this: {% load staticfiles %}
I use it like this:

<link href="{{ STATIC_URL }}assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">

In settings.py:
STATIC_URL = '/static/'
STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)

Hierarchy: joxi.ru/8AnE5MGSqdG8b2
As displayed on the site: joxi.ru/12Mz78BT4NbLKA / joxi.ru/v293dE4sGMlLWr

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question