I'm not sure I understand what you're suggesting - can you provide a
brief example, or highlight the specific lines where this change would
go?

On Nov 23, 12:35 pm, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Quick solution: use redirect from "/" to "/blog" or vice versa.
>
> --
> Valts
>
> On Sun, Nov 23, 2008 at 19:16, goblue0311 <[EMAIL PROTECTED]> wrote:
>
> > This post is an update to "NoReverseMatch question", which was an epic
> > fail in terms of resolving my issue. I blame myself for posting an
> > overly complex question. I will try again...
>
> > I am trying to use reverse( ) in this manner:
>
> > >> python manage.py shell
> > >> from django.core.urlresolvers import reverse
> > >> reverse('blog_detail',kwargs={'year':2008, 'month':'nov', 'day':21,
> > 'slug':u'secondPost'})
>
> > and I receive a "NoReverseMatch: Reverse for 'blog_detail' with
> > arguments '()' and keyword arguments ... not found" (except it
> > actually lists the keyword arguments).
>
> > I'm using a simple Django app with a root urls.py (simplified below):
>
> > urlpatterns = patterns('',
> >    (r'^$',          include('basicBlog.blog.urls')),
> >    (r'^blog/',      include('basicBlog.blog.urls')),
> >    ...
> > )
>
> > and basicBlog.blog urls.py (also simplified):
>
> > urlpatterns = patterns('',
> >    url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?
> > P<slug>[-\w]+)/$',
> >        view=blog_views.post_detail,
> >        name='blog_detail'),
> >    ...
> > )
>
> > I see no reason why this reverse should fail - the view name is
> > accurate, I think the view is importable, and the pattern looks like
> > a  match. I've been working on this for a few days, so any suggestions
> > are welcome. Thanks!
>
>
--~--~---------~--~----~------------~-------~--~----~
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