I'm testing a styles app, and I tried this URL:
http://localhost:8000/styles/css/test-style/
When I did that, it responded with a 404 error. It said it checked
against the URLConfs I had included, which were:
# /devsite/urls.py
urlpatterns = patterns('',
# Example:
# (r'^devsite/', include('devsite.foo.urls')),
# Uncomment the next line to enable admin documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
# dj.styles
(r'^styles/', include('devsite.djstyles.urls')),)
# /devsite/djstyles/urls.py
urlpatterns = patterns('devsite.djstyles.views',
(r'css/(?P<style>\w+)/$', 'display', {"mode": "css"}),
(r'preview/(?P<style>\w+)/$', 'display', {"mode": "preview"}),
)
(Note that I have not written the views yet.) The problem is that on
the 404 page, it responded that this was the list of URLs it checked
against:
1. ^admin/doc/
2. ^admin/(.*)
3. ^styles/ css/(?P<style>\w+)/$
4. ^styles/ preview/(?P<style>\w+)/$
Does anyone have any insight on why the space between styles/ and css
got inserted, and how to fix it?
Regards,
Leaf
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---