html - one of the pages doesnt inherit the css form the base -


hey, using django template. below snippet base html file, invoked css link

<link rel="stylesheet" type="text/css" href="static/css/layout.css"/> 

but weirdest thing happened.

{% extends "layout.html" %} 

all html pages inherit base html file, there 1 page doesnt inherit css style while others work perfectly. think of possible answer? thank in advance.

don't hard code css paths, if using django 1.3 staticfiles app, set following in settings.py:

static_url = '/static/' 

in template:

<link rel="stylesheet" type="text/css" href="{{ static_url }}css/layout.css"/> 

i'm assuming css/layout.css present in static folder of 1 of app.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -