Ask Your Question

Revision history [back]

Did you try with these two?

  TMPF="/usr/share/openstack-dashboard/openstack_dashboard/settings.py"
  sed -i "s/MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'.*/\
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage' \n\
AUTH_USER_MODEL = 'openstack_auth.User'/" $TMPF

  TMPF="/etc/openstack-dashboard/local_settings"
  sed -i "s/.*'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',.*/\
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\n\
        'LOCATION': '127.0.0.1:11211', /" $TMPF