Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 29th, 2010  |  syntax: Python  |  size: 3.50 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Environment:
  2.  
  3. Request Method: POST
  4. Request URL: http://localhost:8000/admin/UserProfile/invitecode/add/
  5. Django Version: 1.2.3
  6. Python Version: 2.6.5
  7. Installed Applications:
  8. ['django.contrib.auth',
  9.  'django.contrib.contenttypes',
  10.  'django.contrib.sessions',
  11.  'django.contrib.sites',
  12.  'django.contrib.admin',
  13.  'django.contrib.markup',
  14.  'MYAPP.Business',
  15.  'MYAPP.Accounting',
  16.  'MYAPP.Reporting',
  17.  'MYAPP.Logging',
  18.  'MYAPP.UserProfile',
  19.  'MYAPP.Management',
  20.  'django_extensions',
  21.  'MYAPP.Billing',
  22.  'debug_toolbar',
  23.  'MYAPP.CMS',
  24.  'MYAPP.Communication']
  25. Installed Middleware:
  26. ('django.contrib.sessions.middleware.SessionMiddleware',
  27.  'django.middleware.common.CommonMiddleware',
  28.  'django.contrib.auth.middleware.AuthenticationMiddleware')
  29.  
  30.  
  31. Traceback:
  32. File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
  33.   100.                     response = callback(request, *callback_args, **callback_kwargs)
  34. File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/sites.py" in root
  35.   512.                 return self.model_page(request, *url.split('/', 2))
  36. File "/usr/local/lib/python2.6/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
  37.   69.         response = view_func(request, *args, **kwargs)
  38. File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/sites.py" in model_page
  39.   531.         return admin_obj(request, rest_of_url)
  40. File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/options.py" in __call__
  41.   1190.             return self.add_view(request)
  42. File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py" in _wrapper
  43.   21.             return decorator(bound_func)(*args, **kwargs)
  44. File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py" in _wrapped_view
  45.   76.                     response = view_func(request, *args, **kwargs)
  46. File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py" in bound_func
  47.   17.                 return func(self, *args2, **kwargs2)
  48. File "/usr/local/lib/python2.6/dist-packages/django/db/transaction.py" in _commit_on_success
  49.   299.                     res = func(*args, **kw)
  50. File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/options.py" in add_view
  51.   801.                 return self.response_add(request, new_object)
  52. File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/options.py" in response_add
  53.   660.             self.message_user(request, msg)
  54. File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/options.py" in message_user
  55.   584.         messages.info(request, message)
  56. File "/usr/local/lib/python2.6/dist-packages/django/contrib/messages/api.py" in info
  57.   90.                 fail_silently=fail_silently)
  58. File "/usr/local/lib/python2.6/dist-packages/django/contrib/messages/api.py" in add_message
  59.   24.         return request.user.message_set.create(message=message)
  60. File "/usr/local/lib/python2.6/dist-packages/django/db/models/fields/related.py" in create
  61.   520.             new_obj = super(ManyRelatedManager, self).using(db).create(**kwargs)
  62. File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py" in create
  63.   350.         obj = self.model(**kwargs)
  64. File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in __init__
  65.   339.                 raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0])
  66.  
  67. Exception Type: TypeError at /admin/UserProfile/invitecode/add/
  68. Exception Value: 'message' is an invalid keyword argument for this function
clone this paste RAW Paste Data