2008/10/20 Jarek Zgoda <[EMAIL PROTECTED]>: > > Wiadomość napisana w dniu 2008-10-19, o godz. 21:19, przez AdamC: > >>>> In template /home/adam/apps/films/templates/includes/nav.html, error >>>> at line 1 >>>> Caught an exception while rendering: Reverse for >>>> 'films.films.views.edit_film_list' with arguments '()' and keyword >>>> arguments '{}' not found. >>>> 1 | <a href="{%url films.views.film_list %}">Film list</a> | <a >>>> href="{%url films.views.add_film %}">Add a film</a> | <a href="{%url >>>> films.views.edit_film_list %}">Edit</a> | <a href="{%url >>>> films.views.search %}">Search</a> | <a href="{%url >>>> films.views.logout_view %}">Logout</a> >>>> >>>> The part that is red in this error report is the {%url - has this >>>> changed since version 1? >>>> >>>> Any other advice on how to fix this error? >>> >>> >>> Double check your urlconf - all views used there have to be >>> importable. The error pobably means you have some error in your views >>> (or some url pattern pointing to view that does not exist). >>> >> My urls.py >> >> >> from django.conf.urls.defaults import * >> from django.contrib import admin >> admin.autodiscover() >> >> 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'), >> >> ) >> >> Anything untoward here? > > If any of these throws an error upon importing, you'll get "reverse > not found". Try to manually import each of them from shell.
They all import fine. I do have @login_required at the beginning of a few functions. Has this changed since v1.0? Adam -- You back your data up on the same planet? http://www.monkeez.org PGP key: 0x7111B833 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---