Найти - Пользователи
Полная версия: Перестала отображаться статика
Начало » Django » Перестала отображаться статика
1
wadadaaa
settings.py
ROOT = os.path.dirname(os.path.abspath(__file__))
cd = lambda *a: os.path.join(ROOT, *a)
PROJECT = os.path.basename(ROOT)

MEDIA_ROOT = cd('public/uploads')
MEDIA_URL = '/uploads/'
STATIC_ROOT = cd('public/assets')
STATIC_URL = '/assets/'
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

html:
<link href="{{ STATIC_URL }}themes/css/bootstrappage.css" rel="stylesheet"/>
alexsis
А вы уверены, что
{{ STATIC_URL}}
в шаблоне у вас что-то выводит?
Попробуйте так вставлять ссылку:
{% load staticfiles %}
<link href="{% static "themes/css/bootstrappage.css" %}" rel="stylesheet"/>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB