In your template:

<link href="/site_media/css/style.css" media="screen" rel="stylesheet"
type="text/css" />

In your urls.py:

site_media = os.path.join(os.path.dirname(__file__),'site_media')

urlpatterns = patterns('',
            (r'^site_media/(?P<path>.*)$' ,
'django.views.static.serve',{'document_root':site_media}),
)

Maybe helps...

2011/2/4 h@ck5t0ck <hackstock...@gmail.com>

> Hi guys,
> am very new to django and am having troubles adding css to my pages
> even though i've found some tutorials online
> and followed it word for word.
> Can anyone please help me urgently? I really appreciate your help.
> Best Wishes,
> h@ck5t0ck
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to