hello guys
this is my url.py
urlpatterns = patterns('blog.views',
url(r'^$', ListView.as_view(
queryset=Post.objects.all().order_by("-created")[:2],
template_name="blog.html")),
url(r'^(?P<pk>\d+)$', DetailView.as_view(
model=Post,
template_name="post.html")),
url(r'^archives/$', ListView.as_view(
queryset=Post.objects.all().order_by("-created"),
template_name="archives.html")),
url(r'^tag/(?P<tag>\w+)$', 'tagpage'),
url(r'^feed/$', BlogFeed()),
)
but it calls the url this way
http://127.0.0.1:8000/blog/tagLondon
the right way would be this:
http://127.0.0.1:8000/blog/tag/London
someone can help me to fix this?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/329747a1-d260-4369-8c53-c3d1b068494a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.