On Mon, Oct 20, 2008 at 5:10 PM, AdamC <[EMAIL PROTECTED]> wrote:

>
> 2008/10/20 Karen Tracey <[EMAIL PROTECTED]>:
> > On Mon, Oct 20, 2008 at 4:36 PM, AdamC <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm running the latest checkout using svn as per the download
> >> instructions on the djangoproject site.
> >>
> >
> > OK, now that you've confirmed that and I take a closer look at the
> > error....you have:
> >
> > {%url films.views.edit_film_list %}
> >
> > but I do not see any matching url with that view in the urls you posted:
> >
> > urlpatterns = patterns('',
> > (r'^apps/login/.?$', 'django.contrib.auth.views.login'),
> > (r'^apps/admin/(.*)', admin.site.root),
> > (r'^apps/films/$', 'films.views.film_list'),
> > (r'^apps/films/(?P<film_id>\d+)/$', 'films.views.detail'),
> > (r'^apps/films/search/$', 'films.views.search'),
> > (r'^apps/films/addfilm/$', 'films.views.add_film'),
> > (r'^apps/films/addfilm/thanks/$', 'films.views.add_film_thanks'),
> > (r'^apps/films/editfilm/(?P<film_id>\d+)/$', 'films.views.edit_film'),
> > (r'^apps/films/editfilm/$', 'films.views.film_list'),
> > (r'^apps/films/deletefilm/$', 'films.views.film_list'),
> > (r'^apps/films/deletefilm/(?P<film_id>\d+)$', 'films.views.delete_film'),
> > (r'^apps/films/logout/$', 'films.views.logout_view'),
> >
> > )
> >
> > The one that looks like it might be the one that should match
> > (r'^apps/films/editfilm/$') is mapped to 'films.views.film_list', not
> > 'films.views.edit_film_list'?
>
> editfilm is a function that creates a form to edit a particular film.
>
> edit_film_list is a function that shows a list of films with an edit
> link beside that particular film.
>

But where in your urls.py do you have a urlpattern that maps to
edit_film_list?  I'm with the error message -- I can't find any url that
would result in calling edit_film_list; when I do a search on
'edit_film_list' in your posts the only place I find it referenced is in the
{% url %} tag that is generating the error messages and in the error
messages.  It's nowhere mentioned in the urls.py that you posted, so I don't
see how you could expect {% url %} for it to work?


>
> This is all strange, as this application is running fine on an old svn
> version of django (pre 1.0).
>

That I can't explain.  Unless you're not actually using the urls.py you
posted on the old level, but rather one that does have a urlpattern that
maps to the edit_film_list view.

Karen

--~--~---------~--~----~------------~-------~--~----~
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