Skip to content

Instantly share code, notes, and snippets.

@name1984
Created March 5, 2014 21:01
Show Gist options
  • Save name1984/9376486 to your computer and use it in GitHub Desktop.
Save name1984/9376486 to your computer and use it in GitHub Desktop.
2014-03-05 15:58:22,552 ERROR 5723 [root] exceptions.py:9 - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'>
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/views.py", line 1182, in create_account
ret = _do_create_account(post_vars)
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/views.py", line 1014, in _do_create_account
profile.city = post_vars.get('city')
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 366, in __set__
self.field.name, self.field.rel.to._meta.object_name))
ValueError: Cannot assign "u'CUENCA, AZUAY, Ecuador'": "UserProfile.city" must be a "City" instance.
2014-03-05 15:58:22,572 ERROR 5723 [django.request] base.py:215 - Internal Server Error: /create_account
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/views.py", line 1182, in create_account
ret = _do_create_account(post_vars)
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/views.py", line 1014, in _do_create_account
profile.city = post_vars.get('city')
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 366, in __set__
self.field.name, self.field.rel.to._meta.object_name))
ValueError: Cannot assign "u'CUENCA, AZUAY, Ecuador'": "UserProfile.city" must be a "City" instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment