Opened 18 years ago

Last modified 18 years ago

#2529 closed defect

admin/doc/views throws TypeError — at Initial Version

Reported by: dummy@… Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

the admin/doc/views throws the following TypeError with Rev: 3570

  • /usr/local/lib/python2.4/site-packages/django/core/handlers/base.py in get_response
    1. # Apply view middleware
    2. for middleware_method in self._view_middleware:
    3. response = middleware_method(request, callback, callback_args, callback_kwargs)
    4. if response:
    5. return response 72.
    6. try:
    7. response = callback(request, *callback_args, callback_kwargs) ...
    8. except Exception, e:
    9. # If the view raised an exception, run it through exception
    10. # middleware, and if the exception middleware returns a
    11. # response, use that. Otherwise, reraise the exception.
    12. for middleware_method in self._exception_middleware:
    13. response = middleware_method(request, e)
    ▶ Local vars Variable Value callback <function _checklogin at 0x40d862cc> callback_args () callback_kwargs {} e <exceptions.TypeError instance at 0x40e83ccc> exceptions <module 'django.core.exceptions' from '/usr/local/lib/python2.4/site-packages/django/core/exceptions.pyc'> mail_admins <function mail_admins at 0x40b1e534> middleware_method <bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x40b1cf2c>> path '/admin/doc/views/' request <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, COOKIES:{'dtpref_system': '0', 'sessionid': '4517e146a5510d6737c8dba722ff4d02', 'style': 'null'}, META:{'ACLOCAL_FLAGS': '-I /opt/gnome/share/aclocal', 'COLORTERM': , 'CONTENT_LENGTH': , 'CONTENT_TYPE': 'text/plain', 'CPU': 'i686', 'CVS_RSH': 'ssh', 'DESKTOP_SESSION': 'default', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'ais.settings', 'DM_CONTROL': '/var/run/xdmctl', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GNOME2_PATH': '/usr/local:/opt/gnome:/usr', 'GROFF_NO_SGR': 'yes', 'GTK2_RC_FILES': '/etc/opt/gnome/gtk-2.0/gtkrc:/opt/gnome/share/themes/Geramik/gtk-2.0/gtkrc:/home/dirk/.gtkrc-2.0-keramik:/home/dirk/.kde/share/config/gtkrc', 'GTK_PATH': '/usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0', 'GTK_RC_FILES': '/etc/opt/gnome/gtk/gtkrc:/opt/gnome/share/themes/Geramik/gtk/gtkrc:/home/dirk/.gtkrc-keramik:/home/dirk/.kde/share/config/gtkrc', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/home/dirk', 'HOST': 'datzert1', 'HOSTNAME': 'datzert1', 'HOSTTYPE': 'i386', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4517e146a5510d6737c8dba722ff4d02; dtpref_system="0"; style=null', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8000/admin/doc/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6', 'INFODIR': '/usr/local/info:/usr/share/info:/usr/info', 'INFOPATH': '/usr/local/info:/usr/share/info:/usr/info', 'INPUTRC': '/etc/inputrc', 'JAVA_BINDIR': '/usr/lib/jvm/jre/bin', 'JAVA_HOME': '/usr/lib/jvm/jre', 'JAVA_ROOT': '/usr/lib/jvm/jre', 'JRE_HOME': '/usr/lib/jvm/jre', 'KDEHOME': '/home/dirk/.kde', 'KDE_FULL_SESSION': 'true', 'KDE_MULTIHEAD': 'false', 'KONSOLE_DCOP': 'DCOPRef(konsole-7264,konsole)', 'KONSOLE_DCOP_SESSION': 'DCOPRef(konsole-7264,session-3)', 'LANG': 'de_DE.UTF-8', 'LD_HWCAP_MASK': '0x20000000', 'LESS': '-M -I', 'LESSCLOSE': 'lessclose.sh %s %s', 'LESSKEY': '/etc/lesskey.bin', 'LESSOPEN': 'lessopen.sh %s', 'LESS_ADVANCED_PREPROCESSOR': 'no', 'LOGNAME': 'dirk', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:', 'LS_OPTIONS': '-N --color=tty -T 0', 'MACHTYPE': 'i686-suse-linux', 'MANPATH': '/usr/local/man:/usr/share/man:/usr/X11R6/man:/opt/gnome/share/man', 'MINICOM': '-c on', 'NNTPSERVER': 'news', 'OLDPWD': '/home/dirk/django', 'OPENWINHOME': '/usr/openwin', 'OSTYPE': 'linux', 'PAGER': 'less', 'PATH': '/home/dirk/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/home/dirk/.local/bin', 'PATH_INFO': '/admin/doc/views/', 'PKG_CONFIG_PATH': '/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig', 'PROFILEREAD': 'true', 'PWD': '/home/dirk/django/projects/ais', 'PYTHONPATH': '/home/dirk/django/projects:/home/dirk/django/apps', 'PYTHONSTARTUP': '/etc/pythonstart', 'QTDIR': '/usr/lib/qt3', 'QUERY_STRING': , 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': , 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': , 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SESSION_MANAGER': 'local/datzert1:/tmp/.ICE-unix/6588', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_AGENT_PID': '6542', 'SSH_ASKPASS': '/usr/lib/ssh/x11-ssh-askpass', 'SSH_AUTH_SOCK': '/tmp/ssh-nKQbvJ6507/agent.6507', 'STYLE': 'keramik', 'TERM': 'xterm', 'TEXINPUTS': '::/home/dirk/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX:/home/dirk/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX', 'TZ': 'Europe/Berlin', 'USER': 'dirk', 'USE_FAM': , 'WINDOWID': '39845893', 'WINDOWMANAGER': '/usr/X11R6/bin/kde', 'XCURSOR_SIZE': , 'XCURSOR_THEME': 'default', 'XDM_MANAGED': '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic', 'XKEYSYMDB': '/usr/X11R6/lib/X11/XKeysymDB', 'XMODIFIERS': '@im=local', 'XNLSPATH': '/usr/X11R6/lib/X11/nls', 'XSESSION_IS_UP': 'yes', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x4034c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x40b1e684>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver <django.core.urlresolvers.RegexURLResolver object at 0x40db6c0c> response None self <django.core.handlers.wsgi.WSGIHandler object at 0x40ad1fac> settings <django.conf.LazySettings object at 0x4043e76c> urlresolvers <module 'django.core.urlresolvers' from '/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.pyc'>
  • /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py in _checklogin
    1. def _checklogin(request, *args, kwargs):
    2. if request.user.is_authenticated() and request.user.is_staff:
    3. # The user is valid. Continue to the admin page.
    4. if request.POST.has_key('post_data'):
    5. # User must have re-authenticated through a different window
    6. # or tab.
    7. request.POST = _decode_post_data(request.POSTpost_data)
    8. return view_func(request, *args, kwargs) ... 56.
    9. assert hasattr(request, 'session'), "The Django admin requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'." 58.
    10. # If this isn't already the login page, display it.
    11. if not request.POST.has_key(LOGIN_FORM_KEY):
    12. if request.POST:
    ▶ Local vars Variable Value args () kwargs {} request <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, COOKIES:{'dtpref_system': '0', 'sessionid': '4517e146a5510d6737c8dba722ff4d02', 'style': 'null'}, META:{'ACLOCAL_FLAGS': '-I /opt/gnome/share/aclocal', 'COLORTERM': , 'CONTENT_LENGTH': , 'CONTENT_TYPE': 'text/plain', 'CPU': 'i686', 'CVS_RSH': 'ssh', 'DESKTOP_SESSION': 'default', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'ais.settings', 'DM_CONTROL': '/var/run/xdmctl', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GNOME2_PATH': '/usr/local:/opt/gnome:/usr', 'GROFF_NO_SGR': 'yes', 'GTK2_RC_FILES': '/etc/opt/gnome/gtk-2.0/gtkrc:/opt/gnome/share/themes/Geramik/gtk-2.0/gtkrc:/home/dirk/.gtkrc-2.0-keramik:/home/dirk/.kde/share/config/gtkrc', 'GTK_PATH': '/usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0', 'GTK_RC_FILES': '/etc/opt/gnome/gtk/gtkrc:/opt/gnome/share/themes/Geramik/gtk/gtkrc:/home/dirk/.gtkrc-keramik:/home/dirk/.kde/share/config/gtkrc', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/home/dirk', 'HOST': 'datzert1', 'HOSTNAME': 'datzert1', 'HOSTTYPE': 'i386', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4517e146a5510d6737c8dba722ff4d02; dtpref_system="0"; style=null', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8000/admin/doc/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6', 'INFODIR': '/usr/local/info:/usr/share/info:/usr/info', 'INFOPATH': '/usr/local/info:/usr/share/info:/usr/info', 'INPUTRC': '/etc/inputrc', 'JAVA_BINDIR': '/usr/lib/jvm/jre/bin', 'JAVA_HOME': '/usr/lib/jvm/jre', 'JAVA_ROOT': '/usr/lib/jvm/jre', 'JRE_HOME': '/usr/lib/jvm/jre', 'KDEHOME': '/home/dirk/.kde', 'KDE_FULL_SESSION': 'true', 'KDE_MULTIHEAD': 'false', 'KONSOLE_DCOP': 'DCOPRef(konsole-7264,konsole)', 'KONSOLE_DCOP_SESSION': 'DCOPRef(konsole-7264,session-3)', 'LANG': 'de_DE.UTF-8', 'LD_HWCAP_MASK': '0x20000000', 'LESS': '-M -I', 'LESSCLOSE': 'lessclose.sh %s %s', 'LESSKEY': '/etc/lesskey.bin', 'LESSOPEN': 'lessopen.sh %s', 'LESS_ADVANCED_PREPROCESSOR': 'no', 'LOGNAME': 'dirk', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:', 'LS_OPTIONS': '-N --color=tty -T 0', 'MACHTYPE': 'i686-suse-linux', 'MANPATH': '/usr/local/man:/usr/share/man:/usr/X11R6/man:/opt/gnome/share/man', 'MINICOM': '-c on', 'NNTPSERVER': 'news', 'OLDPWD': '/home/dirk/django', 'OPENWINHOME': '/usr/openwin', 'OSTYPE': 'linux', 'PAGER': 'less', 'PATH': '/home/dirk/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/home/dirk/.local/bin', 'PATH_INFO': '/admin/doc/views/', 'PKG_CONFIG_PATH': '/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig', 'PROFILEREAD': 'true', 'PWD': '/home/dirk/django/projects/ais', 'PYTHONPATH': '/home/dirk/django/projects:/home/dirk/django/apps', 'PYTHONSTARTUP': '/etc/pythonstart', 'QTDIR': '/usr/lib/qt3', 'QUERY_STRING': , 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': , 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': , 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SESSION_MANAGER': 'local/datzert1:/tmp/.ICE-unix/6588', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_AGENT_PID': '6542', 'SSH_ASKPASS': '/usr/lib/ssh/x11-ssh-askpass', 'SSH_AUTH_SOCK': '/tmp/ssh-nKQbvJ6507/agent.6507', 'STYLE': 'keramik', 'TERM': 'xterm', 'TEXINPUTS': '::/home/dirk/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX:/home/dirk/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX', 'TZ': 'Europe/Berlin', 'USER': 'dirk', 'USE_FAM': , 'WINDOWID': '39845893', 'WINDOWMANAGER': '/usr/X11R6/bin/kde', 'XCURSOR_SIZE': , 'XCURSOR_THEME': 'default', 'XDM_MANAGED': '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic', 'XKEYSYMDB': '/usr/X11R6/lib/X11/XKeysymDB', 'XMODIFIERS': '@im=local', 'XNLSPATH': '/usr/X11R6/lib/X11/nls', 'XSESSION_IS_UP': 'yes', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x4034c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x40b1e684>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> view_func <function view_index at 0x40d86294>
  • /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py in view_index
    1. settings_modules = [import(m, , , []) for m in settings.ADMIN_FOR]
    2. else:
    3. settings_modules = [settings] 104.
    4. views = []
    5. for settings_mod in settings_modules:
    6. urlconf = import(settings_mod.ROOT_URLCONF, , , [])
    7. view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns) ...
    8. if Site._meta.installed:
    9. site_obj = Site.objects.get(pk=settings_mod.SITE_ID)
    10. else:
    11. site_obj = GenericSite()
    12. for (func, regex) in view_functions:
    13. views.append({
    ▶ Local vars Variable Value request <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, COOKIES:{'dtpref_system': '0', 'sessionid': '4517e146a5510d6737c8dba722ff4d02', 'style': 'null'}, META:{'ACLOCAL_FLAGS': '-I /opt/gnome/share/aclocal', 'COLORTERM': , 'CONTENT_LENGTH': , 'CONTENT_TYPE': 'text/plain', 'CPU': 'i686', 'CVS_RSH': 'ssh', 'DESKTOP_SESSION': 'default', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'ais.settings', 'DM_CONTROL': '/var/run/xdmctl', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GNOME2_PATH': '/usr/local:/opt/gnome:/usr', 'GROFF_NO_SGR': 'yes', 'GTK2_RC_FILES': '/etc/opt/gnome/gtk-2.0/gtkrc:/opt/gnome/share/themes/Geramik/gtk-2.0/gtkrc:/home/dirk/.gtkrc-2.0-keramik:/home/dirk/.kde/share/config/gtkrc', 'GTK_PATH': '/usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0', 'GTK_RC_FILES': '/etc/opt/gnome/gtk/gtkrc:/opt/gnome/share/themes/Geramik/gtk/gtkrc:/home/dirk/.gtkrc-keramik:/home/dirk/.kde/share/config/gtkrc', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/home/dirk', 'HOST': 'datzert1', 'HOSTNAME': 'datzert1', 'HOSTTYPE': 'i386', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4517e146a5510d6737c8dba722ff4d02; dtpref_system="0"; style=null', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8000/admin/doc/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6', 'INFODIR': '/usr/local/info:/usr/share/info:/usr/info', 'INFOPATH': '/usr/local/info:/usr/share/info:/usr/info', 'INPUTRC': '/etc/inputrc', 'JAVA_BINDIR': '/usr/lib/jvm/jre/bin', 'JAVA_HOME': '/usr/lib/jvm/jre', 'JAVA_ROOT': '/usr/lib/jvm/jre', 'JRE_HOME': '/usr/lib/jvm/jre', 'KDEHOME': '/home/dirk/.kde', 'KDE_FULL_SESSION': 'true', 'KDE_MULTIHEAD': 'false', 'KONSOLE_DCOP': 'DCOPRef(konsole-7264,konsole)', 'KONSOLE_DCOP_SESSION': 'DCOPRef(konsole-7264,session-3)', 'LANG': 'de_DE.UTF-8', 'LD_HWCAP_MASK': '0x20000000', 'LESS': '-M -I', 'LESSCLOSE': 'lessclose.sh %s %s', 'LESSKEY': '/etc/lesskey.bin', 'LESSOPEN': 'lessopen.sh %s', 'LESS_ADVANCED_PREPROCESSOR': 'no', 'LOGNAME': 'dirk', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:', 'LS_OPTIONS': '-N --color=tty -T 0', 'MACHTYPE': 'i686-suse-linux', 'MANPATH': '/usr/local/man:/usr/share/man:/usr/X11R6/man:/opt/gnome/share/man', 'MINICOM': '-c on', 'NNTPSERVER': 'news', 'OLDPWD': '/home/dirk/django', 'OPENWINHOME': '/usr/openwin', 'OSTYPE': 'linux', 'PAGER': 'less', 'PATH': '/home/dirk/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/home/dirk/.local/bin', 'PATH_INFO': '/admin/doc/views/', 'PKG_CONFIG_PATH': '/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig', 'PROFILEREAD': 'true', 'PWD': '/home/dirk/django/projects/ais', 'PYTHONPATH': '/home/dirk/django/projects:/home/dirk/django/apps', 'PYTHONSTARTUP': '/etc/pythonstart', 'QTDIR': '/usr/lib/qt3', 'QUERY_STRING': , 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': , 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': , 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SESSION_MANAGER': 'local/datzert1:/tmp/.ICE-unix/6588', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_AGENT_PID': '6542', 'SSH_ASKPASS': '/usr/lib/ssh/x11-ssh-askpass', 'SSH_AUTH_SOCK': '/tmp/ssh-nKQbvJ6507/agent.6507', 'STYLE': 'keramik', 'TERM': 'xterm', 'TEXINPUTS': '::/home/dirk/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX:/home/dirk/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX', 'TZ': 'Europe/Berlin', 'USER': 'dirk', 'USE_FAM': , 'WINDOWID': '39845893', 'WINDOWMANAGER': '/usr/X11R6/bin/kde', 'XCURSOR_SIZE': , 'XCURSOR_THEME': 'default', 'XDM_MANAGED': '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic', 'XKEYSYMDB': '/usr/X11R6/lib/X11/XKeysymDB', 'XMODIFIERS': '@im=local', 'XNLSPATH': '/usr/X11R6/lib/X11/nls', 'XSESSION_IS_UP': 'yes', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x4034c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x40b1e684>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> settings_mod <django.conf.LazySettings object at 0x4043e76c> settings_modules [<django.conf.LazySettings object at 0x4043e76c>] urlconf <module 'ais.urls' from '/home/dirk/django/projects/ais/urls.pyc'> views []
  • /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py in extract_views_from_urlpatterns
    1. for p in urlpatterns:
    2. if hasattr(p, 'get_callback'):
    3. try:
    4. views.append((p.get_callback(), base + p.regex.pattern))
    5. except ViewDoesNotExist:
    6. continue
    7. elif hasattr(p, '_get_url_patterns'):
    8. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern)) ...
    9. else:
    10. raise TypeError, _("%s does not appear to be a urlpattern object") % p
    11. return views 341.
    12. named_group_matcher = re.compile(r'\(\?P(<\w+>).+?\)')
    13. non_named_group_matcher = re.compile(r'\(.*?\)')
    ▶ Local vars Variable Value base p <django.core.urlresolvers.RegexURLResolver object at 0x40b23c4c> urlpatterns [<django.core.urlresolvers.RegexURLResolver object at 0x40b23c4c>, <django.core.urlresolvers.RegexURLResolver object at 0x40b23cec>, <django.core.urlresolvers.RegexURLResolver object at 0x40b23e2c>] views []
  • /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py in extract_views_from_urlpatterns
    1. try:
    2. views.append((p.get_callback(), base + p.regex.pattern))
    3. except ViewDoesNotExist:
    4. continue
    5. elif hasattr(p, '_get_url_patterns'):
    6. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern))
    7. else:
    8. raise TypeError, _("%s does not appear to be a urlpattern object") % p ...
    9. return views 341.
    10. named_group_matcher = re.compile(r'\(\?P(<\w+>).+?\)')
    11. non_named_group_matcher = re.compile(r'\(.*?\)') 344.
    12. def simplify_regex(pattern):
    ▶ Local vars Variable Value base 'ais/' p <django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac> urlpatterns [<django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4da4c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ec>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4db2c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4dacc>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4db8c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4dc6c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4dbec>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4dc4c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4dd4c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4dccc>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4dd2c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4de2c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4ddac>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4de0c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4df0c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4de8c>, <django.core.urlresolvers.RegexURLPattern object at 0x40b4deec>] views []

Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, *callback_args, callback_kwargs)

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin

  1. return view_func(request, *args, kwargs)

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in view_index

  1. view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns)

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns

  1. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern))

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns

  1. raise TypeError, _("%s does not appear to be a urlpattern object") % p

TypeError at /admin/doc/views/
<django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac> does not appear to be a urlpattern object

Regards,
Dirk

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top