← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1258440] [NEW] environment variable DJANGO_SETTINGS_MODULE or call settings.configure() is undefined

 

Public bug reported:

Having installed openstack by Devstack,we can't login dashborad and get
an error:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.22 (Ubuntu) Server at 192.168.227.128 Port 80

Check the Horizon_error.log,we see(partial):
[Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]   File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 88, in connect
[Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]     if settings.DEBUG:
[Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
[Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]     self._setup(name)
[Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
[Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]     % (desc, ENVIRONMENT_VARIABLE))
[Fri Dec 06 16:39:29 2013][error] [client 192.168.227.128] 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.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1258440

Title:
   environment variable DJANGO_SETTINGS_MODULE or call
  settings.configure() is undefined

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Having installed openstack by Devstack,we can't login dashborad and
  get an error:

  The server encountered an internal error or misconfiguration and was unable to complete your request.
  Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
  More information about this error may be available in the server error log.
  Apache/2.2.22 (Ubuntu) Server at 192.168.227.128 Port 80

  Check the Horizon_error.log,we see(partial):
  [Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]   File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 88, in connect
  [Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]     if settings.DEBUG:
  [Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
  [Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]     self._setup(name)
  [Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
  [Fri Dec 06 16:39:29 2013] [error] [client 192.168.227.128]     % (desc, ENVIRONMENT_VARIABLE))
  [Fri Dec 06 16:39:29 2013][error] [client 192.168.227.128] 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1258440/+subscriptions


Follow ups

References