← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1310815] Re: bad django conf example

 

Reviewed:  https://review.openstack.org/119980
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=d5a92e28ef8f85012eced9d08d0c2592771da4bc
Submitter: Jenkins
Branch:    master

commit d5a92e28ef8f85012eced9d08d0c2592771da4bc
Author: darrenchan <dazzachan@xxxxxxxxxxxx>
Date:   Tue Sep 9 13:30:24 2014 +1000

    Minor fix to Django settings in dashboard database session section
    
    Minor fix to Django settings in the local_settings file
    
    Change-Id: Ie38e154f20c2ad77e5860fef7c0e7688d3c75809
    backport: havana
    Closes-Bug: #1310815


** Changed in: openstack-manuals
       Status: In Progress => Fix Released

-- 
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):
  Confirmed
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