Hi,
I've made what saying at 
http://superjared.com/entry/requiring-login-entire-django-powered-site/
url. But i cant import to my css file which stay under /extend/
directory. I have diffrent apps and I can import with that that css
file. You can see below my url.py:

from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^example/', include('example.foo.urls')),
      (r'^myapp/$', 'example.myapp.views.index'),
    # Uncomment the admin/doc line below and add
'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^extend/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': '/home/ibrahim/example/extend'}),
    (r'^accounts/login/$', 'django.contrib.auth.views.login')
)


I can import with myapp that css file but no luck with accounts/login.
I've already created the file under templates/registration/login.html
and add the line:
<link href="extend/login.css" rel="stylesheet" type="text/css"
media="screen" />
What is the problem?
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.

Reply via email to