Karen,
1. In setting.py my media root is set to /Users/sptxk/djcode/mysite/
bnStyle/media/
2. in urls.py (r'^site_media/(?P<path>.*)$',
'django.views.static.serve', {'document_root': '/Users/sptxk/djcode/
mysite/bnStyle/media/'}),
3. My css files are located /Users/sptxk/djcode/mysite/bnStyle/media/
css/
4. In my template for base.html
<head>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{%
load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" /
>
{% if LANGUAGE_BIDI %}
<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}
{% admin_media_prefix %}css/rtl.css{% endblock %}" />
{% endif %}
{% block extrastyle %}{% endblock %}
{% block extrahead %}{% endblock %}
{% block blockbots %}
<meta name="robots" content="NONE,NOARCHIVE" />
{% endblock %}
</head>
I hope this helps.
Tom
On Jan 15, 2:14 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 15, 2008 2:03 PM, mOne <[EMAIL PROTECTED]> wrote:
>
>
>
> > Karen,
>
> > I am in dev. Is there any other way in dv other than the static files?
>
> If you want your CSS served by the development server, the static server is
> the way to do it. Is that not working for you? If so, provide some
> specifics of your urls.py, where your CSS files are located on disk, and how
> the CSS is specified in your templates and maybe someone here can help fix
> it.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---