I am having difficult matching the url pattern
I have
url(r'^(?P<title>)', 'pages.views.PageNameRequest')
and
def PageNameRequest(request, title):
p = get_object_or_404(Page, title=title)
return render_to_response('page.html', {'page': p})
but it just returns that
No Page matches the given query.
You’re close, but you need to follow up your title param declaration with a regex to describe it. For example, if you wanted the url to only contain one or more lower case letters, do this…
but you’re probably looking for something more like…
which would allow one or more occurances of lowercase a-z, upper case A-Z,
_and a space.