hi,
I am new to django and I am having problem with css and template.
I have read the documentation on static file
http://www.djangoproject.com/documentation/static_files/
but still having the problem.
This is how my url.py file is:
from django.conf.urls.defaults import *
from trytemplate.views import *
from django.conf import settings
urlpatterns = patterns('',
(r'^time/$', current_datetime),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/home/laspal/trytemplate/Template/',
'show_indexes' : True}),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^satic/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/home/laspal/trytemplate/Template/'}),
)
This is my .html file:
<html>
<head>
<link rel="stylesheet"
type="text/css" href="testing1.css" />
</head>
My css file is in /home/laspal/trytemplate/Template/testing1.css
But still I am not able to see my style in my http://localhost:8000/time/
Do I have to make any change in my setting.py file.
Please help me out.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---