StephenPCG / django-adminlte-templates

MIT License
31 stars 18 forks source link

Problem with STATIC_URL #5

Open ramoel opened 8 years ago

ramoel commented 8 years ago

STATIC_URL isn't working on django 1.9.2.

<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="/static/Font-Awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <link href="/static/ionicons/css/ionicons.min.css" rel="stylesheet" type="text/css" /> <link href="/static/AdminLTE/css/AdminLTE.min.css" rel="stylesheet" type="text/css" /> <link href="/static/AdminLTE/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" />

alexandreklein commented 8 years ago

Same issue here got this in the developper tools :

"<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="/static/Font-Awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <link href="/static/ionicons/css/ionicons.min.css" rel="stylesheet" type="text/css" /> <link href="/static/AdminLTE/css/AdminLTE.min.css" rel="stylesheet" type="text/css" /> <link href="/static/AdminLTE/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" /> "
flyingstarlai commented 8 years ago

try to wrap your load with autoscape... example:

{% autoescape off %} {% alte_load_css "bootstrap" "fontawesome" "ionicons" "adminlte" %} {% endautoescape %}

Diegow3b commented 8 years ago

have you configured your STATIC_ROOT at settings.py? STATIC_ROOT = os.path.join(WSGI_DIR, 'static')

after that run python manage.py collectstatic --noinput