Just logged in with my google account, and clicked save on the myprofile page (which I was directed at after login) and got an Unbound local error: "local variable 'profile' referenced before assignment"
Edit: the production server doesn't have this error.
Edit2: The distance parameter was saved apparently, but still clicking 'save' errors.
https://i.imgur.com/zWNmv.jpgEnvironment:
Request Method: POST
Request URL: http://zode.ubitex.org/profile/
Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.humanize',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.staticfiles',
'django.contrib.gis',
'socialregistration',
'ubitex',
'orders',
'profiles',
'embeds']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/var/django/Ubitex/profiles/views.py" in view_profile
57. {'form': form, 'profile': profile,},
Exception Type: UnboundLocalError at /profile/
Exception Value: local variable 'profile' referenced before assignment
Address: 1MLAoVFz4VhEEafqzLULeTZanr9qmaYrXE