Hi all,
I'm new to Django and new to html/css/webdesign in general. I have
a question about how to have my base.html template point to the
correct directory where I store my .css file for my site.
I noticed in the admin version, the admin .css is store in the
subdirectory /media/css/. This path is referenced in the admin
base.html file as:
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{%
load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}"
>
I have all my templates in the /mytemplates/ folder and wanted to
similarly wanted to store my css in a subdirectory, /mytemplates/media/
css/base.css. So I though I ought to put something like below in my
base.html template:
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}/
media/css/base.css{% endblock %}" >
...but it doesnt like that. I've tried typing in the full path name
and that doesn't seem to work either. My template folder path is
indicated in my TEMPLATE_DIRS in my settings.py file for the site. So
my big question is how do I pass the appropriate path for my css to my
template?
Please let me know if you need more info.
Thanks a bunch!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---