from aws_settings import *

# Use OpenStack Swift as the default storage backend
DEFAULT_FILE_STORAGE = 'swift.storage.SwiftStorage'

# OpenStack credentials
SWIFT_AUTH_URL = AUTH_TOKENS.get('SWIFT_AUTH_URL')
SWIFT_AUTH_VERSION = AUTH_TOKENS.get('SWIFT_AUTH_VERSION', 1)
SWIFT_USERNAME = AUTH_TOKENS.get('SWIFT_USERNAME')
SWIFT_KEY = AUTH_TOKENS.get('SWIFT_KEY')
SWIFT_TENANT_NAME = AUTH_TOKENS.get('SWIFT_TENANT_NAME')
SWIFT_TENANT_ID = AUTH_TOKENS.get('SWIFT_TENANT_ID')
SWIFT_USE_TEMP_URLS = AUTH_TOKENS.get('SWIFT_USE_TEMP_URLS', False)
SWIFT_TEMP_URL_KEY = AUTH_TOKENS.get('SWIFT_TEMP_URL_KEY')

if AUTH_TOKENS.get('SWIFT_REGION_NAME'):
    SWIFT_EXTRA_OPTIONS = {'region_name': AUTH_TOKENS['SWIFT_REGION_NAME']}

# Swift container setup
SWIFT_CONTAINER_NAME = UPLOAD_BUCKET
SWIFT_NAME_PREFIX = UPLOAD_PATH_PREFIX
SWIFT_TEMP_URL_DURATION = UPLOAD_URL_EXPIRE

@@ -2,624 +2,32 @@
 rom 
-aws_settings import *%0A%0A# Use OpenStack Swift as the default storage backend%0ADEFAULT_FILE_STORAGE = 'swift.storage.SwiftStorage'%0A%0A# OpenStack credentials%0ASWIFT_AUTH_URL = AUTH_TOKENS.get('SWIFT_AUTH_URL')%0ASWIFT_AUTH_VERSION = AUTH_TOKENS.get('SWIFT_AUTH_VERSION', 1)%0ASWIFT_USERNAME = AUTH_TOKENS.get('SWIFT_USERNAME')%0ASWIFT_KEY = AUTH_TOKENS.get('SWIFT_KEY')%0ASWIFT_TENANT_NAME = AUTH_TOKENS.get('SWIFT_TENANT_NAME')%0ASWIFT_TENANT_ID = AUTH_TOKENS.get('SWIFT_TENANT_ID')%0ASWIFT_USE_TEMP_URLS = AUTH_TOKENS.get('SWIFT_USE_TEMP_URLS', False)%0ASWIFT_TEMP_URL_KEY = AUTH_TOKENS.get('SWIFT_TEMP_URL_KEY')%0A%0Aif AUTH_TOKENS.get('
+production import *%0A%0Aif 
 SWIF
@@ -43,10 +43,8 @@
 NAME
-')
 :%0A  
@@ -87,21 +87,8 @@
 e': 
-AUTH_TOKENS%5B'
 SWIF
@@ -104,10 +104,8 @@
 NAME
-'%5D
 %7D%0A%0A#

Change the openstack_settings to import yaml also