I'm using django 1.1.3 and following along with a book called Practical Django Projects. I'm running into a problem editing the .urls file in my project folder and while creating a flat page on the admin site for my project. This is what I have in my urls file:
urlpatterns = patterns('',
# Example:
# (r'^cms/', include('cms.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'^admin/', include(admin.site.urls)),
(r'', include('django.contrib.flatpages.urls')),
)
I have created a flat page name with the url extension /first-page/ . When I navigate to it i receive PAGE NOT FOUND No FlatPage matches the given query.
What I should be seeing according to my book is TemplateDoesNotExist at /first-page/
with a wealth of other error messages.
I'm not sure what I'm doing incorrectly as I followed the book's instructions to the letter (I think). If I haven't provided enough information please let me know. I'm not sure at this point what else I would include.
Thank you ahead of time for any help.