Malcolm Tredinnick wrote:
>
> Which type of error are you seeing? Can you maybe paste the traceback
> and the exception line? Are you seeing the same traceback as Luis posted
> earlier in the thread?

Yes. I am seeing exactly the same tracebacks as Luis.

There are two kinds. When going to edit a current user, the error is
very short without any further traceback.

==========

Page not found (404)
Request Method:         GET
Request URL:    http://localhost:8000/admin/auth/user/3/

You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a standard
404 page

==========

When clicking the ADD button, the traceback is longer and exactly 100%
the same as Luis above (checked line numbers etc etc). Here is it
again. See below also for the extended trackback with all the local
vars.

==========


DoesNotExist at /admin/auth/user/add/
Request Method:         GET
Request URL:    http://localhost:8000/admin/auth/user/add/
Exception Type:         DoesNotExist
Exception Value:
Exception Location:
        
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\related.py
in __get__, line 163
Traceback (innermost last)

Traceback (most recent call last):
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\core\handlers\base.py"
in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\decorators.py"
in _checklogin
  55. return view_func(request, *args, **kwargs)
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\views\decorators\cache.py"
in _wrapped_view_func
  39. response = view_func(request, *args, **kwargs)
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\main.py"
in add_stage
  243. manipulator = model.AddManipulator()
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\manipulators.py"
in __init__
  69. self.fields.extend(f.get_manipulator_fields(self.opts, self,
self.change))
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\__init__.py"
in get_manipulator_fields
  226. field_objs, params =
self.prepare_field_objs_and_params(manipulator, name_prefix)
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\__init__.py"
in prepare_field_objs_and_params
  215. field_objs = self.get_manipulator_field_objs()
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\related.py"
in get_manipulator_field_objs
  627. choices = self.get_choices_default()
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\related.py"
in get_choices_default
  631. return Field.get_choices(self, include_blank=False)
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\__init__.py"
in get_choices
  292. return first_choice + [(x._get_pk_val(), str(x))
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\auth\models.py"
in __str__
  48. return "%s | %s" % (self.content_type, self.name)
File
"c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\related.py"
in __get__
  163. raise self.field.rel.to.DoesNotExist

  DoesNotExist at /admin/auth/user/add/

==========

#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\core\handlers\base.py
in get_response

  67. # Apply view middleware
  68. for middleware_method in self._view_middleware:
  69. response = middleware_method(request, callback, callback_args,
callback_kwargs)
  70. if response:
  71. return response
  72.
  73. try:

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

  75. except Exception, e:
  76. # If the view raised an exception, run it through exception
  77. # middleware, and if the exception middleware returns a
  78. # response, use that. Otherwise, reraise the exception.
  79. for middleware_method in self._exception_middleware:
  80. response = middleware_method(request, e)

▶ Local vars
Variable        Value
callback
<function _checklogin at 0x01066B30>
callback_args
('auth', 'user')
callback_kwargs
{}
e
<django.db.models.base.DoesNotExist instance at 0x01126508>
exceptions
<module 'django.core.exceptions' from
'c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\core\exceptions.py'>
mail_admins
<function mail_admins at 0x01010FB0>
middleware_method
<bound method XViewMiddleware.process_view of
<django.middleware.doc.XViewMiddleware object at 0x00FE8830>>
path
'/admin/auth/user/add/'
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>,
COOKIES:{'sessionid': '0c4d10baa61a95d26b3a798397d1c10d'},
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users',
'APPDATA': 'C:\\Documents and Settings\\Jaanus Kase\\Application Data',
'APR_ICONV_PATH': 'C:\\Program Files\\Subversion\\iconv', 'CLASSPATH':
'.;C:\\Program Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip',
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
'COMPUTERNAME': 'JKASET41', 'COMSPEC':
'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE':
'text/plain', 'DJANGO_SETTINGS_MODULE': 'trmproject.settings',
'FARLANG': 'English', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE':
'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and
Settings\\Jaanus Kase', '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':
'en-us,en;q=0.7,et;q=0.3', 'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'sessionid=0c4d10baa61a95d26b3a798397d1c10d',
'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300',
'HTTP_REFERER': 'http://localhost:8000/admin/auth/user/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7', 'LOGONSERVER':
'\\\\JKASET41', 'NUMBER_OF_PROCESSORS': '1', 'OPENSSL_CONF':
'C:\\OpenSSL\\bin\\openssl.cnf', 'OS': 'Windows_NT', 'PATH':
'C:\\Program
Files\\Far;c:\\php;C:\\Python24\\Lib\\site-packages\\Django-0.95-py2.4.egg\\django\\bin\\;C:\\Python24\\.;C:\\Perl\\bin\\;C:\\PROGRAM
FILES\\THINKPAD\\UTILITIES;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program
Files\\ATI Technologies\\ATI Control Panel;C:\\Program Files\\PC-Doctor
for Windows\\services;c:\\bat;C:\\GnuPG;c:\\util\\wget;C:\\Program
Files\\Common Files\\GTK\\2.0\\bin;C:\\Program
Files\\Subversion\\bin;C:\\Program Files\\QuickTime\\QTSystem\\',
'PATHEXT':
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.pyw;.py',
'PATH_INFO': '/admin/auth/user/add/', 'PROCESSOR_ARCHITECTURE': 'x86',
'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 9 Stepping 5,
GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0905',
'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH':
'c:/python24/lib/site-packages', 'QTJAVA': 'C:\\Program
Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip', 'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': 'localhost',
'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.2',
'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT':
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TMP':
'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TZ': 'Europe/Tallinn',
'USERDOMAIN': 'JKASET41', 'USERNAME': 'Jaanus Kase', 'USERPROFILE':
'C:\\Documents and Settings\\Jaanus Kase', 'WINDIR': 'C:\\WINDOWS',
'__COMPAT_LAYER': 'EnableNXShowUI ', 'wsgi.errors': <open file
'<stderr>', mode 'w' at 0x00ACE0B0>, 'wsgi.file_wrapper': <class
'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
<socket._fileobject object at 0x00E45A78>, '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 0x00FE84D0>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0x00C27B10>
settings
<django.conf.LazySettings object at 0x00B8E610>
urlresolvers
<module 'django.core.urlresolvers' from
'c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\core\urlresolvers.pyc'>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\decorators.py
in _checklogin

  48. def _checklogin(request, *args, **kwargs):
  49. if request.user.is_authenticated() and request.user.is_staff:
  50. # The user is valid. Continue to the admin page.
  51. if request.POST.has_key('post_data'):
  52. # User must have re-authenticated through a different window
  53. # or tab.
  54. request.POST = _decode_post_data(request.POST['post_data'])

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

  56.
  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'."
  58.
  59. # If this isn't already the login page, display it.
  60. if not request.POST.has_key(LOGIN_FORM_KEY):
  61. if request.POST:

▶ Local vars
Variable        Value
args
('auth', 'user')
kwargs
{}
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>,
COOKIES:{'sessionid': '0c4d10baa61a95d26b3a798397d1c10d'},
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users',
'APPDATA': 'C:\\Documents and Settings\\Jaanus Kase\\Application Data',
'APR_ICONV_PATH': 'C:\\Program Files\\Subversion\\iconv', 'CLASSPATH':
'.;C:\\Program Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip',
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
'COMPUTERNAME': 'JKASET41', 'COMSPEC':
'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE':
'text/plain', 'DJANGO_SETTINGS_MODULE': 'trmproject.settings',
'FARLANG': 'English', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE':
'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and
Settings\\Jaanus Kase', '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':
'en-us,en;q=0.7,et;q=0.3', 'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'sessionid=0c4d10baa61a95d26b3a798397d1c10d',
'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300',
'HTTP_REFERER': 'http://localhost:8000/admin/auth/user/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7', 'LOGONSERVER':
'\\\\JKASET41', 'NUMBER_OF_PROCESSORS': '1', 'OPENSSL_CONF':
'C:\\OpenSSL\\bin\\openssl.cnf', 'OS': 'Windows_NT', 'PATH':
'C:\\Program
Files\\Far;c:\\php;C:\\Python24\\Lib\\site-packages\\Django-0.95-py2.4.egg\\django\\bin\\;C:\\Python24\\.;C:\\Perl\\bin\\;C:\\PROGRAM
FILES\\THINKPAD\\UTILITIES;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program
Files\\ATI Technologies\\ATI Control Panel;C:\\Program Files\\PC-Doctor
for Windows\\services;c:\\bat;C:\\GnuPG;c:\\util\\wget;C:\\Program
Files\\Common Files\\GTK\\2.0\\bin;C:\\Program
Files\\Subversion\\bin;C:\\Program Files\\QuickTime\\QTSystem\\',
'PATHEXT':
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.pyw;.py',
'PATH_INFO': '/admin/auth/user/add/', 'PROCESSOR_ARCHITECTURE': 'x86',
'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 9 Stepping 5,
GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0905',
'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH':
'c:/python24/lib/site-packages', 'QTJAVA': 'C:\\Program
Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip', 'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': 'localhost',
'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.2',
'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT':
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TMP':
'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TZ': 'Europe/Tallinn',
'USERDOMAIN': 'JKASET41', 'USERNAME': 'Jaanus Kase', 'USERPROFILE':
'C:\\Documents and Settings\\Jaanus Kase', 'WINDIR': 'C:\\WINDOWS',
'__COMPAT_LAYER': 'EnableNXShowUI ', 'wsgi.errors': <open file
'<stderr>', mode 'w' at 0x00ACE0B0>, 'wsgi.file_wrapper': <class
'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
<socket._fileobject object at 0x00E45A78>, 'wsgi.multiprocess': False,
'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme':
'http', 'wsgi.version': (1, 0)}>
view_func
<function _wrapped_view_func at 0x01066AF0>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\views\decorators\cache.py
in _wrapped_view_func

  32.
  33. def never_cache(view_func):
  34. """
  35. Decorator that adds headers to a response so that it will
  36. never be cached.
  37. """
  38. def _wrapped_view_func(request, *args, **kwargs):

  39. response = view_func(request, *args, **kwargs) ...

  40. add_never_cache_headers(response)
  41. return response
  42. return _wrapped_view_func

▶ Local vars
Variable        Value
args
('auth', 'user')
kwargs
{}
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>,
COOKIES:{'sessionid': '0c4d10baa61a95d26b3a798397d1c10d'},
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users',
'APPDATA': 'C:\\Documents and Settings\\Jaanus Kase\\Application Data',
'APR_ICONV_PATH': 'C:\\Program Files\\Subversion\\iconv', 'CLASSPATH':
'.;C:\\Program Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip',
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
'COMPUTERNAME': 'JKASET41', 'COMSPEC':
'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE':
'text/plain', 'DJANGO_SETTINGS_MODULE': 'trmproject.settings',
'FARLANG': 'English', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE':
'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and
Settings\\Jaanus Kase', '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':
'en-us,en;q=0.7,et;q=0.3', 'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'sessionid=0c4d10baa61a95d26b3a798397d1c10d',
'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300',
'HTTP_REFERER': 'http://localhost:8000/admin/auth/user/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7', 'LOGONSERVER':
'\\\\JKASET41', 'NUMBER_OF_PROCESSORS': '1', 'OPENSSL_CONF':
'C:\\OpenSSL\\bin\\openssl.cnf', 'OS': 'Windows_NT', 'PATH':
'C:\\Program
Files\\Far;c:\\php;C:\\Python24\\Lib\\site-packages\\Django-0.95-py2.4.egg\\django\\bin\\;C:\\Python24\\.;C:\\Perl\\bin\\;C:\\PROGRAM
FILES\\THINKPAD\\UTILITIES;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program
Files\\ATI Technologies\\ATI Control Panel;C:\\Program Files\\PC-Doctor
for Windows\\services;c:\\bat;C:\\GnuPG;c:\\util\\wget;C:\\Program
Files\\Common Files\\GTK\\2.0\\bin;C:\\Program
Files\\Subversion\\bin;C:\\Program Files\\QuickTime\\QTSystem\\',
'PATHEXT':
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.pyw;.py',
'PATH_INFO': '/admin/auth/user/add/', 'PROCESSOR_ARCHITECTURE': 'x86',
'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 9 Stepping 5,
GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0905',
'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH':
'c:/python24/lib/site-packages', 'QTJAVA': 'C:\\Program
Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip', 'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': 'localhost',
'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.2',
'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT':
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TMP':
'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TZ': 'Europe/Tallinn',
'USERDOMAIN': 'JKASET41', 'USERNAME': 'Jaanus Kase', 'USERPROFILE':
'C:\\Documents and Settings\\Jaanus Kase', 'WINDIR': 'C:\\WINDOWS',
'__COMPAT_LAYER': 'EnableNXShowUI ', 'wsgi.errors': <open file
'<stderr>', mode 'w' at 0x00ACE0B0>, 'wsgi.file_wrapper': <class
'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
<socket._fileobject object at 0x00E45A78>, 'wsgi.multiprocess': False,
'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme':
'http', 'wsgi.version': (1, 0)}>
view_func
<function add_stage at 0x01066AB0>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\main.py
in add_stage

 236. if request.user.has_perm(app_label + '.' +
opts.get_change_permission()):
 237. # redirect to list view
 238. post_url = '../'
 239. else:
 240. # Object list will give 'Permission Denied', so go back to admin
home
 241. post_url = '../../../'
242.

 243. manipulator = model.AddManipulator() ...

 244. if request.POST:
 245. new_data = request.POST.copy()
 246.
 247. if opts.has_field_type(models.FileField):
 248. new_data.update(request.FILES)
249.

▶ Local vars
Variable        Value
app_label
'auth'
form_url
''
model
<class 'django.contrib.auth.models.User'>
model_name
'user'
object_id_override
None
opts
<Options for User>
post_url
'../'
post_url_continue
'../%s/'
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>,
COOKIES:{'sessionid': '0c4d10baa61a95d26b3a798397d1c10d'},
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users',
'APPDATA': 'C:\\Documents and Settings\\Jaanus Kase\\Application Data',
'APR_ICONV_PATH': 'C:\\Program Files\\Subversion\\iconv', 'CLASSPATH':
'.;C:\\Program Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip',
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
'COMPUTERNAME': 'JKASET41', 'COMSPEC':
'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE':
'text/plain', 'DJANGO_SETTINGS_MODULE': 'trmproject.settings',
'FARLANG': 'English', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE':
'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and
Settings\\Jaanus Kase', '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':
'en-us,en;q=0.7,et;q=0.3', 'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'sessionid=0c4d10baa61a95d26b3a798397d1c10d',
'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300',
'HTTP_REFERER': 'http://localhost:8000/admin/auth/user/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7', 'LOGONSERVER':
'\\\\JKASET41', 'NUMBER_OF_PROCESSORS': '1', 'OPENSSL_CONF':
'C:\\OpenSSL\\bin\\openssl.cnf', 'OS': 'Windows_NT', 'PATH':
'C:\\Program
Files\\Far;c:\\php;C:\\Python24\\Lib\\site-packages\\Django-0.95-py2.4.egg\\django\\bin\\;C:\\Python24\\.;C:\\Perl\\bin\\;C:\\PROGRAM
FILES\\THINKPAD\\UTILITIES;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program
Files\\ATI Technologies\\ATI Control Panel;C:\\Program Files\\PC-Doctor
for Windows\\services;c:\\bat;C:\\GnuPG;c:\\util\\wget;C:\\Program
Files\\Common Files\\GTK\\2.0\\bin;C:\\Program
Files\\Subversion\\bin;C:\\Program Files\\QuickTime\\QTSystem\\',
'PATHEXT':
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.pyw;.py',
'PATH_INFO': '/admin/auth/user/add/', 'PROCESSOR_ARCHITECTURE': 'x86',
'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 9 Stepping 5,
GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0905',
'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH':
'c:/python24/lib/site-packages', 'QTJAVA': 'C:\\Program
Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip', 'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': 'localhost',
'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.2',
'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT':
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TMP':
'C:\\DOCUME~1\\JAANUS~1\\LOCALS~1\\Temp', 'TZ': 'Europe/Tallinn',
'USERDOMAIN': 'JKASET41', 'USERNAME': 'Jaanus Kase', 'USERPROFILE':
'C:\\Documents and Settings\\Jaanus Kase', 'WINDIR': 'C:\\WINDOWS',
'__COMPAT_LAYER': 'EnableNXShowUI ', 'wsgi.errors': <open file
'<stderr>', mode 'w' at 0x00ACE0B0>, 'wsgi.file_wrapper': <class
'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
<socket._fileobject object at 0x00E45A78>, 'wsgi.multiprocess': False,
'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme':
'http', 'wsgi.version': (1, 0)}>
show_delete
False
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\manipulators.py
in __init__

  62.
  63. def __init__(self, follow=None):
  64. self.follow = self.opts.get_follow(follow)
  65. self.fields = []
  66.
  67. for f in self.opts.fields + self.opts.many_to_many:
  68. if self.follow.get(f.name, False):

  69. self.fields.extend(f.get_manipulator_fields(self.opts, self,
self.change)) ...

  70.
  71. # Add fields for related objects.
  72. for f in self.opts.get_all_related_objects():
  73. if self.follow.get(f.name, False):
  74. fol = self.follow[f.name]
  75. self.fields.extend(f.get_manipulator_fields(self.opts, self,
self.change, fol))

▶ Local vars
Variable        Value
f
<django.db.models.fields.related.ManyToManyField object at 0x00FB0710>
follow
None
self
<django.db.models.manipulators.AddManipulator object at 0x010FDD10>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\__init__.py
in get_manipulator_fields

 219. """
 220. Returns a list of forms.FormField instances for this field. It
 221. calculates the choices at runtime, not at compile time.
 222.
 223. name_prefix is a prefix to prepend to the "field_name" argument.
 224. rel is a boolean specifying whether this field is in a related
context.
 225. """

 226. field_objs, params =
self.prepare_field_objs_and_params(manipulator, name_prefix) ...

 227.
 228. # Add the "unique" validator(s).
 229. for field_name_list in opts.unique_together:
 230. if field_name_list[0] == self.name:
 231. params['validator_list'].append(getattr(manipulator, 'isUnique%s'
% '_'.join(field_name_list)))
232.

▶ Local vars
Variable        Value
change
False
follow
True
manipulator
<django.db.models.manipulators.AddManipulator object at 0x010FDD10>
name_prefix
''
opts
<Options for User>
rel
False
self
<django.db.models.fields.related.ManyToManyField object at 0x00FB0710>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\__init__.py
in prepare_field_objs_and_params

 208. field_objs = [forms.RadioSelectField]
 209. params['ul_class'] = get_ul_class(self.radio_admin)
 210. else:
 211. field_objs = [forms.SelectField]
 212.
 213. params['choices'] = self.get_choices_default()
 214. else:

 215. field_objs = self.get_manipulator_field_objs() ...

 216. return (field_objs, params)
 217.
 218. def get_manipulator_fields(self, opts, manipulator, change,
name_prefix='', rel=False, follow=True):
 219. """
 220. Returns a list of forms.FormField instances for this field. It
 221. calculates the choices at runtime, not at compile time.

▶ Local vars
Variable        Value
manipulator
<django.db.models.manipulators.AddManipulator object at 0x010FDD10>
name_prefix
''
params
{'validator_list': []}
self
<django.db.models.fields.related.ManyToManyField object at 0x00FB0710>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\related.py
in get_manipulator_field_objs

 620. msg = gettext_lazy('Hold down "Control", or "Command" on a Mac,
to select more than one.')
 621. self.help_text = string_concat(self.help_text, msg)
 622.
 623. def get_manipulator_field_objs(self):
 624. if self.rel.raw_id_admin:
 625. return [forms.RawIdAdminField]
 626. else:

 627. choices = self.get_choices_default() ...

 628. return [curry(forms.SelectMultipleField,
size=min(max(len(choices), 5), 15), choices=choices)]
 629.
 630. def get_choices_default(self):
 631. return Field.get_choices(self, include_blank=False)
 632.
 633. def _get_m2m_db_table(self, opts):

▶ Local vars
Variable        Value
self
<django.db.models.fields.related.ManyToManyField object at 0x00FB0710>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\related.py
in get_choices_default

 624. if self.rel.raw_id_admin:
 625. return [forms.RawIdAdminField]
 626. else:
 627. choices = self.get_choices_default()
 628. return [curry(forms.SelectMultipleField,
size=min(max(len(choices), 5), 15), choices=choices)]
 629.
 630. def get_choices_default(self):

 631. return Field.get_choices(self, include_blank=False) ...

 632.
 633. def _get_m2m_db_table(self, opts):
 634. "Function that can be curried to provide the m2m table name for
this relation"
 635. return '%s_%s' % (opts.db_table, self.name)
 636.
 637. def _get_m2m_column_name(self, related):

▶ Local vars
Variable        Value
self
<django.db.models.fields.related.ManyToManyField object at 0x00FB0710>
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\__init__.py
in get_choices

 285.
 286. def get_choices(self, include_blank=True,
blank_choice=BLANK_CHOICE_DASH):
 287. "Returns a list of tuples used as SelectField choices for this
field."
 288. first_choice = include_blank and blank_choice or []
 289. if self.choices:
 290. return first_choice + list(self.choices)
 291. rel_model = self.rel.to

 292. return first_choice + [(x._get_pk_val(), str(x)) ...

 293. for x in
rel_model._default_manager.complex_filter(self.rel.limit_choices_to)]
 294.
 295. def get_choices_default(self):
 296. if self.radio_admin:
 297. return self.get_choices(include_blank=self.blank,
blank_choice=BLANK_CHOICE_NONE)
 298. else:

▶ Local vars
Variable        Value
_[1]
[]
blank_choice
[('', '---------')]
first_choice
[]
include_blank
False
rel_model
<class 'django.contrib.auth.models.Permission'>
self
<django.db.models.fields.related.ManyToManyField object at 0x00FB0710>
x
Error in formatting:
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\auth\models.py
in __str__

  41. class Meta:
  42. verbose_name = _('permission')
  43. verbose_name_plural = _('permissions')
  44. unique_together = (('content_type', 'codename'),)
  45. ordering = ('content_type', 'codename')
  46.
  47. def __str__(self):

  48. return "%s | %s" % (self.content_type, self.name) ...

  49.
  50. class Group(models.Model):
  51. """Groups are a generic way of categorizing users to apply
permissions, or some other label, to those users. A user can belong to
any number of groups.
  52.
  53. A user in a group automatically has all the permissions granted
to that group. For example, if the group Site editors has the
permission can_edit_home_page, any user in that group will have that
permission.
54.

▶ Local vars
Variable        Value
self
Error in formatting:
#
c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\fields\related.py
in __get__

 156. return getattr(instance, cache_name)
 157. except AttributeError:
 158. val = getattr(instance, self.field.attname)
 159. if val is None:
 160. # If NULL is an allowed value, return it.
 161. if self.field.null:
 162. return None

 163. raise self.field.rel.to.DoesNotExist ...

 164. other_field = self.field.rel.get_related_field()
 165. if other_field.rel:
 166. params = {'%s__pk' % self.field.rel.field_name: val}
 167. else:
 168. params = {'%s__exact' % self.field.rel.field_name: val}
 169. rel_obj = self.field.rel.to._default_manager.get(**params)

▶ Local vars


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to