Hello,

I am running through the Practical Django projects book. I've gotten
to the point where I am trying to view an entry detail, but the error
that I am getting is: No FlatPage matches the given query

Here's my urls.py:

from django.conf.urls.defaults import *

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

urlpatterns = patterns('',
    # Example:
    # (r'^cardie/', include('cardie.foo.urls')),

    # 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'^blog/(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{2})/(P?<slug>[-
\w]+)/$', 'coltrane.views.entry_detail'),
        (r'^blog/$', 'coltrane.views.entries_index'),
        (r'^admin/(.*)', admin.site.root),
        (r'',include('django.contrib.flatpages.urls')),
)

Here's the url that I am trying to view:

http://127.0.0.1:8000/blog/2008/oct/05/test/

Everything looks okay to me. Any ideas? Thanks in advance!

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to