I'm having a very similar problem. This code worked fine pre-Django
1.0, now I am really struggling to find the problem.

url.py :

url(r'^(?P<year>\d{4})/$', blog_views.post_archive_year,  name =
"blog_archive_year"),

views.py

def post_archive_year(request, year):
     return date_based.archive_year(request, year = 2007, queryset =
Post.objects.published(), date_field = 'publish', make_object_list =
True)


Error:

Caught an exception while rendering: Reverse for 'blog_index' with
arguments '()' and keyword arguments '{}' not found

On Sep 15, 11:19 am, catsclaw <[EMAIL PROTECTED]> wrote:
> On Sep 15, 3:10 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
>
> > You're going to have to reign in the emotion a bit and resort to posting
> > some actual details of the problems you're seeing. A short example that
> > reliably demonstrates the problem so that other people can repeat it and
> > either work out what you're doing wrong or if there's a bug in the code.
> > It's not impossible that there are bugs (in fact there are bugs; I know
> > of at least two that have been reported in Trac that look legitimate),
> > but the whole concept isn't fatally flawed or anything.
>
>    I know the concept isn't flawed.  It's the execution that looks
> broken.
>
>    I have the following tag in my template:
>
> {% url addon-login %}
>
>    I have the following line in my main urls.py file:
>
> urlpatterns += patterns('',
>     url(r'^addon/login/$', 'addon.users.login', name='addon-login'),
> )
>
>    I get the following error:
>
> TemplateSyntaxError at /addon/login/
> Caught an exception while rendering: Reverse for 'mainapp.addon-login'
> with arguments '()' and keyword arguments '{}' not found.
>
>     I should mention my addon isn't sitting in a subdirectory of
> mainapp at all.  Not that I can fathom, in the least, why Django
> should demand a hierarchical lookup for named urls, especially since
> the documentation says it won't.
>
> -- Chris
--~--~---------~--~----~------------~-------~--~----~
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