Changes between Initial Version and Version 3 of Ticket #2529


Ignore:
Timestamp:
08/31/2006 04:30:31 PM (9 years ago)
Author:
adrian
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2529

    • Property Summary changed from admin/doc/views throws TypeError to [patch] admin/doc/views throws TypeError
  • Ticket #2529 – Description

    initial v3  
    33the admin/doc/views throws the following TypeError with Rev: 3570
    44
     5{{{
     6Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
    57
    6     * /usr/local/lib/python2.4/site-packages/django/core/handlers/base.py in get_response
    7         67. # Apply view middleware
    8         68. for middleware_method in self._view_middleware:
    9         69. response = middleware_method(request, callback, callback_args, callback_kwargs)
    10         70. if response:
    11         71. return response
    12         72.
    13         73. try:
    14         74. response = callback(request, *callback_args, **callback_kwargs) ...
    15         75. except Exception, e:
    16         76. # If the view raised an exception, run it through exception
    17         77. # middleware, and if the exception middleware returns a
    18         78. # response, use that. Otherwise, reraise the exception.
    19         79. for middleware_method in self._exception_middleware:
    20         80. response = middleware_method(request, e)
    21       ▶ Local vars
    22       Variable  Value
    23       callback 
    24       <function _checklogin at 0x40d862cc>
    25       callback_args     
    26       ()
    27       callback_kwargs   
    28       {}
    29       e         
    30       <exceptions.TypeError instance at 0x40e83ccc>
    31       exceptions       
    32       <module 'django.core.exceptions' from '/usr/local/lib/python2.4/site-packages/django/core/exceptions.pyc'>
    33       mail_admins       
    34       <function mail_admins at 0x40b1e534>
    35       middleware_method         
    36       <bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x40b1cf2c>>
    37       path     
    38       '/admin/doc/views/'
    39       request   
    40       <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)}>
    41       resolver 
    42       <django.core.urlresolvers.RegexURLResolver object at 0x40db6c0c>
    43       response 
    44       None
    45       self     
    46       <django.core.handlers.wsgi.WSGIHandler object at 0x40ad1fac>
    47       settings 
    48       <django.conf.LazySettings object at 0x4043e76c>
    49       urlresolvers     
    50       <module 'django.core.urlresolvers' from '/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.pyc'>
    51     * /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py in _checklogin
    52         48. def _checklogin(request, *args, **kwargs):
    53         49. if request.user.is_authenticated() and request.user.is_staff:
    54         50. # The user is valid. Continue to the admin page.
    55         51. if request.POST.has_key('post_data'):
    56         52. # User must have re-authenticated through a different window
    57         53. # or tab.
    58         54. request.POST = _decode_post_data(request.POST['post_data'])
    59         55. return view_func(request, *args, **kwargs) ...
    60         56.
    61         57. 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'."
    62         58.
    63         59. # If this isn't already the login page, display it.
    64         60. if not request.POST.has_key(LOGIN_FORM_KEY):
    65         61. if request.POST:
    66       ▶ Local vars
    67       Variable  Value
    68       args     
    69       ()
    70       kwargs   
    71       {}
    72       request   
    73       <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)}>
    74       view_func         
    75       <function view_index at 0x40d86294>
    76     * /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py in view_index
    77        101. settings_modules = [__import__(m, '', '', ['']) for m in settings.ADMIN_FOR]
    78        102. else:
    79        103. settings_modules = [settings]
    80        104.
    81        105. views = []
    82        106. for settings_mod in settings_modules:
    83        107. urlconf = __import__(settings_mod.ROOT_URLCONF, '', '', [''])
    84        108. view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns) ...
    85        109. if Site._meta.installed:
    86        110. site_obj = Site.objects.get(pk=settings_mod.SITE_ID)
    87        111. else:
    88        112. site_obj = GenericSite()
    89        113. for (func, regex) in view_functions:
    90        114. views.append({
    91       ▶ Local vars
    92       Variable  Value
    93       request   
    94       <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)}>
    95       settings_mod     
    96       <django.conf.LazySettings object at 0x4043e76c>
    97       settings_modules 
    98       [<django.conf.LazySettings object at 0x4043e76c>]
    99       urlconf   
    100       <module 'ais.urls' from '/home/dirk/django/projects/ais/urls.pyc'>
    101       views     
    102       []
    103     * /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py in extract_views_from_urlpatterns
    104        330. for p in urlpatterns:
    105        331. if hasattr(p, 'get_callback'):
    106        332. try:
    107        333. views.append((p.get_callback(), base + p.regex.pattern))
    108        334. except ViewDoesNotExist:
    109        335. continue
    110        336. elif hasattr(p, '_get_url_patterns'):
    111        337. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern)) ...
    112        338. else:
    113        339. raise TypeError, _("%s does not appear to be a urlpattern object") % p
    114        340. return views
    115        341.
    116        342. named_group_matcher = re.compile(r'\(\?P(<\w+>).+?\)')
    117        343. non_named_group_matcher = re.compile(r'\(.*?\)')
    118       ▶ Local vars
    119       Variable  Value
    120       base     
    121       ''
    122       p         
    123       <django.core.urlresolvers.RegexURLResolver object at 0x40b23c4c>
    124       urlpatterns       
    125       [<django.core.urlresolvers.RegexURLResolver object at 0x40b23c4c>, <django.core.urlresolvers.RegexURLResolver object at 0x40b23cec>, <django.core.urlresolvers.RegexURLResolver object at 0x40b23e2c>]
    126       views     
    127       []
    128     * /usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py in extract_views_from_urlpatterns
    129        332. try:
    130        333. views.append((p.get_callback(), base + p.regex.pattern))
    131        334. except ViewDoesNotExist:
    132        335. continue
    133        336. elif hasattr(p, '_get_url_patterns'):
    134        337. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern))
    135        338. else:
    136        339. raise TypeError, _("%s does not appear to be a urlpattern object") % p ...
    137        340. return views
    138        341.
    139        342. named_group_matcher = re.compile(r'\(\?P(<\w+>).+?\)')
    140        343. non_named_group_matcher = re.compile(r'\(.*?\)')
    141        344.
    142        345. def simplify_regex(pattern):
    143       ▶ Local vars
    144       Variable  Value
    145       base     
    146       '^ais/'
    147       p         
    148       <django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac>
    149       urlpatterns       
    150       [<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>]
    151       views     
    152       []
     8  74. response = callback(request, *callback_args, **callback_kwargs)
    1539
    154 Traceback (most recent call last):
    155 File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
    156   74. response = callback(request, *callback_args, **callback_kwargs)
    15710File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin
    158   55. return view_func(request, *args, **kwargs)
     11
     12  55. return view_func(request, *args, **kwargs)
     13
    15914File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in view_index
    160   108. view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns)
     15
     16   1. view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns)
     17
    16118File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns
    162   337. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern))
     19
     20 337. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern))
     21
    16322File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns
    164   339. raise TypeError, _("%s does not appear to be a urlpattern object") % p
    16523
    166   TypeError at /admin/doc/views/
    167   <django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac> does not appear to be a urlpattern object
     24 339. raise TypeError?, _("%s does not appear to be a urlpattern object") % p
     25
     26    TypeError? at /admin/doc/views/ <django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac> does not appear to be a urlpattern object
     27}}}
     28
    16829
    16930Regards,
Back to Top