Hi all: I have a strange problem, In my project urls.py I define as follow:
urlpatterns = patterns('',
# Example:
# (r'^urus/', include('urus.foo.urls')),
# Uncomment this for admin:
(r'^admin/', include('django.contrib.admin.urls')),
(r'^site_media/(?P<path>.*)$',
'django.views.static.serve',{'document_root': settings.STATIC_PATH}),
(r'^accounts/login/$', 'django.contrib.auth.views.login',
{'template_name': 'personal/login.html'}),
(r'^urus/',include('urus.app.urls')),
(r'^app/','urus.app.views.main'),
)
then the urus/app/urls.py
urlpatterns = patterns(
(r'^$', 'urus.app.views.main'),
)
when I type http://localhost:8000/urus/ in the bowser, an error occoured as
following:
Using the URLconf defined in urus.urls, Django tried these URL patterns, in
this order:
1. ^admin/
2. ^site_media/(?P<path>.*)$
3. ^accounts/login/$
4. ^app/
The current URL, urus/, didn't match any of these.
But if I use http://localhost:8000/app/ it works well, What's the problem?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
<<inline: err.GIF>>

