← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1310815] Re: bad django conf example

 

The fix for openstack-manuals is the only applicable fix for this, I
believe. Closing as wontfix on the Horizon side since there's no change
needed.

** Changed in: horizon
       Status: Confirmed => Won't Fix

** Changed in: horizon
     Assignee: (unassigned) => Gabriel Hurley (gabriel-hurley)

-- 
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/1310815

Title:
  bad django conf example

Status in OpenStack Dashboard (Horizon):
  Won't Fix
Status in OpenStack Manuals:
  Fix Released

Bug description:
  
  With Django 1.6, the setting is wrong. You need to use

  SESSION_ENGINE = 'django.contrib.sessions.backends.db'

  as described on:

  https://docs.djangoproject.com/en/1.6/ref/settings/#std:setting-
  SESSION_ENGINE

  If i use the one described on this page (SESSION_ENGINE =
  'django.core.cache.backends.db.DatabaseCache'), i got a 500 error and
  i have this in logs:

    File ".../django-1.6/django/core/handlers/base.py", line 90, in get_response
      response = middleware_method(request)

    File ".../django-1.6/django/contrib/sessions/middleware.py", line 10, in process_request
      engine = import_module(settings.SESSION_ENGINE)

    File ".../django-1.6/django/utils/importlib.py", line 40, in import_module
      __import__(name)

  ImportError: No module named DatabaseCache

  greetings,
  Thomas

  -----------------------------------
  Built: 2014-04-07T07:45:00 00:00
  git SHA: b7557a0bb682410c86f8022eb07980840d82c8cf
  URL: http://docs.openstack.org/havana/install-guide/install/apt/content/dashboard-session-database.html
  source File: file:/home/jenkins/workspace/openstack-install-deploy-guide-ubuntu/doc/common/section_dashboard_sessions.xml
  xml:id: dashboard-session-database

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