On Apr 11, 7:57 pm, codecowboy <guy.ja...@gmail.com> wrote: > Every time that a load a form on my site, I see the following errors. > If I reload the page, they go away and everything works just fine. > Does anyone know why? Thank you in advance. > > TemplateSyntaxError at /eaccounts/register/ > > Caught an exception while rendering: Tried edit in module > conferences.views. Error was: 'module' object has no attribute 'edit' > > Original Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/django/template/debug.py", > line 71, in render_node > result = node.render(context) > File "/usr/lib/python2.5/site-packages/django/template/ > defaulttags.py", line 373, in render > url = reverse(self.view_name, args=args, kwargs=kwargs) > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", > line 254, in reverse > *args, **kwargs))) > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", > line 227, in reverse > possibilities = self.reverse_dict.getlist(lookup_view) > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", > line 169, in _get_reverse_dict > self._reverse_dict.appendlist(pattern.callback, (bits, p_pattern)) > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", > line 136, in _get_callback > raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % > (func_name, mod_name, str(e)) > ViewDoesNotExist: Tried edit in module conferences.views. Error was: > 'module' object has no attribute 'edit'
The page you are trying to load has either a reverse() call in the view, or a {% url %} tag in the template. In order to resolve the reverse lookup, Django is trying to load all the views in your urlconf - and it looks like one of them has an error. Fix the error in the conferences.views.edit function, and the message should go away. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---