bin/test.pserv fails on Django 1.6

Bug #1257269 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Raphaël Badin

Bug Description

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.

Tags: django-1.6

Related branches

Raphaël Badin (rvb)
Changed in maas:
milestone: none → 14.04
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.