I've just uploaded my changes from development (1.2 alpha) to
production (1.1) and now getting this error on my ubuntu server. Done
a check around for missing __init__.py files but nothing obvious
missing - and was working on osx system.
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120] mod_wsgi
(pid=30181): Exception occurred within WSGI script '/home/django/
tinycomms/django.wsgi'.
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120] Traceback
(most recent call last):
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120] File "/usr/
lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/core/handlers/
wsgi.py", line 230, in __call__
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120]
self.load_middleware()
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120] File "/usr/
lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/core/handlers/
base.py", line 42, in load_middleware
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120] raise
exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"'
% (mw_module, e)
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120]
ImproperlyConfigured: Error importing middleware
tinycomm.scope_middleware: "No module named fields"
r...@ct162:/home/django/tinycomms/tinycomm#
But fields is not mentioned in the middleware:
from libs.utils import changehat
class CheckScopeMiddleware:
"""
if there is a hat in the GET then swithc to that hat (if
different)
"""
def process_request(self, request):
if 'hat' in request.GET:
if request.GET['hat'] != request.session['hat']:
hatcontext = changehat(request, request.GET['hat'])
Syncdb works fine, and I can get a shell and do runserver ok but
asking for any page from the brower gives 500 internal error.
Have implemented apatan+pydev on development, but not copied through
new manage.py
Have upgraded to 1.2 alpha but not used any new features (that I
remember!)
Any suggestions on what this is trying to tell me?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.