Traceback (most recent call last):
File "/home/ubuntu/maas/eggs/nose-1.3.0-py2.7.egg/nose/loader.py", line 413, in loadTestsFromName
addr.filename, addr.module)
File "/home/ubuntu/maas/eggs/nose-1.3.0-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/ubuntu/maas/eggs/nose-1.3.0-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/ubuntu/maas/src/provisioningserver/tests/test_start_cluster_controller.py", line 29, in <module>
from apiclient.testing.django import parse_headers_and_body_with_django
File "/home/ubuntu/maas/src/apiclient/testing/django.py", line 20, in <module>
from django.core.handlers.wsgi import WSGIRequest
File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 11, in <module>
from django.core.handlers import base
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 12, in <module>
from django.db import connections, transaction
File "/usr/lib/python2.7/dist-packages/django/db/__init__.py", line 83, in <module>
signals.request_started.connect(reset_queries)
File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 88, in connect
if settings.DEBUG:
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call
settings.configure() before accessing settings.