hi, I have a bunch of sites in production running on python 2.4.x. Recently I set up a new desktop with mandriva2007 and set up my sites on the local machine with python 2.5, apache2.2 and mod_python 3.3.1. The directory setup and files were taken directy from the svn checkouts of the running sites in production. Everything is on the latest svn head. The sites are running fine. But there are serious problems in admin in all the sites. At times admin works with one or two screens appearing, at other times it doesnt work at all - but always an error comes up like the attached one. The error is different for each site, but all errors come in admin and appear to be looking for functions in my views.py which should be looked for in admin. I thought it maybe because of python 2.5.0, but upgrade to 2.5.1 has not made a difference. The traceback is:
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ViewDoesNotExist at /web/admin/ Tried edituser in module fida.web.views. Error was: 'module' object has no attribute 'edituser' Request Method: GET Request URL: http://fida.web/web/admin/ Exception Type: ViewDoesNotExist Exception Value: Tried edituser in module fida.web.views. Error was: 'module' object has no attribute 'edituser' Exception Location: /usr//lib/python2.5/site-packages/django/core/urlresolvers.py in _get_callback, line 184 Python Executable: /usr/bin/python Python Version: 2.5.0 Template error In template /usr/lib/python2.5/site-packages/django/contrib/admin/templates/admin/base.html, error at line 28 Caught an exception while rendering: Tried edituser in module fida.web.views. Error was: 'module' object has no attribute 'edituser' 18 {% if not is_popup %} 19 <!-- Header --> 20 <div id="header"> 21 <div id="branding"> 22 {% block branding %}{% endblock %} 23 </div> 24 {% if user.is_authenticated and user.is_staff %} 25 <div id="user-tools"> 26 {% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. 27 {% block userlinks %} 28 <a href="{% url django.contrib.admin.views.doc.doc_index %}">{% trans 'Documentation' %}</a> 29 / <a href="{% url django.contrib.auth.views.password_change %}">{% trans 'Change password' %}</a> 30 / <a href="{% url django.contrib.auth.views.logout %}">{% trans 'Log out' %}</a> 31 {% endblock %} 32 </div> 33 {% endif %} 34 {% block nav-global %}{% endblock %} 35 </div> 36 <!-- END Header --> 37 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} › {{ title|escape }}{% endif %}</div>{% endblock %} 38 {% endif %} Traceback (innermost last) Switch back to interactive view Traceback (most recent call last): File "/usr//lib/python2.5/site-packages/django/template/__init__.py" in render_node 810. result = node.render(context) File "/usr//lib/python2.5/site-packages/django/template/defaulttags.py" in render 344. return reverse(self.view_name, args=args, kwargs=kwargs) File "/usr//lib/python2.5/site-packages/django/core/urlresolvers.py" in reverse 296. return iri_to_uri(u'/' + get_resolver(urlconf).reverse(viewname, *args, **kwargs)) File "/usr//lib/python2.5/site-packages/django/core/urlresolvers.py" in reverse 281. if lookup_view in self.reverse_dict: File "/usr//lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_reverse_dict 218. for key, value in pattern.reverse_dict.iteritems(): File "/usr//lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_reverse_dict 221. self._reverse_dict[pattern.callback] = (pattern,) File "/usr//lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_callback 184. raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) ViewDoesNotExist at /web/admin/ Tried edituser in module fida.web.views. Error was: 'module' object has no attribute 'edituser'
-- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/