Running version 1.3 of OTM and I'm running into the following error when trying to add a single tree using the web interface. Does any of the following scream something obvious? Probably doesn't help that uimport still fails without providing additional information. I was hoping the web interface would work.
Environment:
Request Method: POST
Django Version: 1.3.1
Python Version: 2.7.3
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.databrowse',
'django.contrib.gis',
'django.contrib.humanize',
'django.contrib.webdesign',
'django.contrib.markup',
'django.contrib.flatpages',
'threadedcomments',
'treemap',
'api',
'registration',
'template_utils',
'profiles',
'django_reputation',
'tagging',
'south',
'sorl.thumbnail',
'classfaves',
'qs_tiles',
'treekey',
'badges',
'pagination',
'django_sorting',
'pipeline']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'django.contrib.csrf.middleware.CsrfViewMiddleware',
'django.contrib.csrf.middleware.CsrfResponseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django_reputation.middleware.ReputationMiddleware',
'pagination.middleware.PaginationMiddleware',
'django_sorting.middleware.SortingMiddleware')
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/home/fccdr/www/opentreemap/treemap/views.py" in tree_add
1442. change_reputation_for_user(request.user, 'add tree', new_tree)
File "/home/fccdr/www/opentreemap/profiles/utils.py" in change_reputation_for_user
91. Reputation.objects.log_reputation_action(user, change_initiated_by_user, action, reputation_change_amount, model_object)
File "/usr/local/lib/python2.7/dist-packages/django_reputation/models.py" in log_reputation_action
81. % (action_name, content_type.model))
LOCAL VARS:
| Variable |
Value |
| action_value |
25 |
| user |
<User: KeithUSF> |
| target_object |
<Plot: Plot object> |
| action_name |
'add tree' |
| object_id |
4 |
| content_type_object |
<ContentType: plot> |
| self |
<django_reputation.models.ReputationManager object at 0x7fa2f71b2410> |
| originating_user |
<User: KeithUSF>
|
Exception Type: NameError at /trees/add/
Exception Value: global name 'content_type' is not defined