Mod_python error PythonHandler django core handlers modpython Tracebac

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)
File "/home/dik/django_src/django/core/handlers/modpython.py", line 210, in handler
return ModPythonHandler()(req)
File "/home/dik/django_src/django/core/handlers/modpython.py", line 183, in __call__
response = self.get_response(request)
File "/home/dik/django_src/django/core/handlers/base.py", line 67, in get_response
response = middleware_method(request)
File "/home/dik/django_projects/byteflow/apps/middleware/url.py", line 76, in process_request
if not self._urlExists(old_url[1]):
File "/home/dik/django_projects/byteflow/apps/middleware/url.py", line 108, in _urlExists
if resolve(path) is None: raise Http404 # None?!? You mean 404...
File "/home/dik/django_src/django/core/urlresolvers.py", line 299, in resolve
return get_resolver(urlconf).resolve(path)
File "/home/dik/django_src/django/core/urlresolvers.py", line 242, in resolve
for pattern in self.urlconf_module.urlpatterns:
File "/home/dik/django_src/django/core/urlresolvers.py", line 261, in _get_urlconf_module
self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
File "/home/dik/django_projects/byteflow/urls.py", line 43, in
admin.autodiscover()
File "/home/dik/django_src/django/contrib/admin/__init__.py", line 40, in autodiscover
__import__("%s.admin" % app)
File "/home/dik/django_src/django/contrib/auth/admin.py", line 111, in
admin.site.register(User, UserAdmin)
File "/home/dik/django_src/django/contrib/admin/sites.py", line 91, in register
validate(admin_class, model)
File "/home/dik/django_src/django/contrib/admin/validation.py", line 25, in validate
validate_base(cls, model)
File "/home/dik/django_src/django/contrib/admin/validation.py", line 180, in validate_base
check_formfield(cls, model, opts, "fieldsets[%d][1]['fields']" % idx, field)
File "/home/dik/django_src/django/contrib/admin/validation.py", line 259, in check_formfield
"is missing from the form." % (cls.__name__, label, field))
ImproperlyConfigured: 'UserAdmin.fieldsets[5][1]['fields']' refers to field 'site' that is missing from the form.