modilabs/formhub — pull request #789 by ukanga (2012-11-06 10:35:31+00:00)
Title: Direct import, pep8 cleanup

should minimize the occurrences of the exception below
Traceback (most recent call last):

File "/home/ubuntu/srv/formhub-ec2/project_env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/home/ubuntu/srv/formhub-ec2/project_env/lib/python2.7/site-packages/newrelic-1.6.0.13/newrelic/api/object_wrapper.py", line 214, in __call__
self._nr_instance, args, kwargs)

File "/home/ubuntu/srv/formhub-ec2/project_env/lib/python2.7/site-packages/newrelic-1.6.0.13/newrelic/hooks/framework_django.py", line 462, in wrapper
return wrapped(*args, **kwargs)

File "/home/ubuntu/srv/formhub-ec2/formhub/odk_viewer/views.py", line 468, in data_view
context.mongo_api_url = reverse(main.views.api,

AttributeError: 'module' object has no attribute 'views'