Skip to content
Snippets Groups Projects
Commit bd6e060e authored by Cory Lee's avatar Cory Lee
Browse files

Use production.py instead of aws.py

parent 912ec712
Branches
Tags
No related merge requests found
...@@ -9,7 +9,6 @@ This is the default template for our main set of AWS servers. ...@@ -9,7 +9,6 @@ This is the default template for our main set of AWS servers.
import json import json
import os import os
import logging import logging
import logging.config
from path import Path as path from path import Path as path
from xmodule.modulestore.modulestore_settings import convert_module_store_setting_if_needed from xmodule.modulestore.modulestore_settings import convert_module_store_setting_if_needed
...@@ -609,5 +608,4 @@ plugin_settings.add_plugins(__name__, plugin_constants.ProjectType.CMS, plugin_c ...@@ -609,5 +608,4 @@ plugin_settings.add_plugins(__name__, plugin_constants.ProjectType.CMS, plugin_c
derive_settings(__name__) derive_settings(__name__)
logging.config.dictConfig(LOGGING)
logging.warn('DEPRECATION WARNING: aws.py has been deprecated, you should use production.py instead.') logging.warn('DEPRECATION WARNING: aws.py has been deprecated, you should use production.py instead.')
...@@ -24,7 +24,7 @@ from openedx.core.release import RELEASE_LINE ...@@ -24,7 +24,7 @@ from openedx.core.release import RELEASE_LINE
os.environ['SERVICE_VARIANT'] = 'bok_choy_docker' if 'BOK_CHOY_HOSTNAME' in os.environ else 'bok_choy' os.environ['SERVICE_VARIANT'] = 'bok_choy_docker' if 'BOK_CHOY_HOSTNAME' in os.environ else 'bok_choy'
os.environ['CONFIG_ROOT'] = path(__file__).abspath().dirname() os.environ['CONFIG_ROOT'] = path(__file__).abspath().dirname()
from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import from .production import * # pylint: disable=wildcard-import, unused-wildcard-import, wrong-import-position
######################### Testing overrides #################################### ######################### Testing overrides ####################################
......
...@@ -4,7 +4,7 @@ Specific overrides to the base prod settings to make development easier. ...@@ -4,7 +4,7 @@ Specific overrides to the base prod settings to make development easier.
from os.path import abspath, dirname, join from os.path import abspath, dirname, join
from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
# Don't use S3 in devstack, fall back to filesystem # Don't use S3 in devstack, fall back to filesystem
del DEFAULT_FILE_STORAGE del DEFAULT_FILE_STORAGE
......
...@@ -4,7 +4,7 @@ Settings for OpenStack deployments. ...@@ -4,7 +4,7 @@ Settings for OpenStack deployments.
# We import the aws settings because that's currently where the base settings are stored for all deployments. # We import the aws settings because that's currently where the base settings are stored for all deployments.
# TODO - fix this when aws.py is split/renamed. # TODO - fix this when aws.py is split/renamed.
from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
SWIFT_AUTH_URL = AUTH_TOKENS.get('SWIFT_AUTH_URL') SWIFT_AUTH_URL = AUTH_TOKENS.get('SWIFT_AUTH_URL')
SWIFT_AUTH_VERSION = AUTH_TOKENS.get('SWIFT_AUTH_VERSION', 1) SWIFT_AUTH_VERSION = AUTH_TOKENS.get('SWIFT_AUTH_VERSION', 1)
......
...@@ -21,7 +21,6 @@ import datetime ...@@ -21,7 +21,6 @@ import datetime
import json import json
import os import os
import logging import logging
import logging.config
import dateutil import dateutil
from path import Path as path from path import Path as path
...@@ -1108,5 +1107,4 @@ plugin_settings.add_plugins(__name__, plugin_constants.ProjectType.LMS, plugin_c ...@@ -1108,5 +1107,4 @@ plugin_settings.add_plugins(__name__, plugin_constants.ProjectType.LMS, plugin_c
derive_settings(__name__) derive_settings(__name__)
logging.config.dictConfig(LOGGING)
logging.warn('DEPRECATION WARNING: aws.py has been deprecated, you should use production.py instead.') logging.warn('DEPRECATION WARNING: aws.py has been deprecated, you should use production.py instead.')
...@@ -28,7 +28,7 @@ TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root" ...@@ -28,7 +28,7 @@ TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root"
os.environ['SERVICE_VARIANT'] = 'bok_choy_docker' if 'BOK_CHOY_HOSTNAME' in os.environ else 'bok_choy' os.environ['SERVICE_VARIANT'] = 'bok_choy_docker' if 'BOK_CHOY_HOSTNAME' in os.environ else 'bok_choy'
os.environ['CONFIG_ROOT'] = CONFIG_ROOT os.environ['CONFIG_ROOT'] = CONFIG_ROOT
from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import from .production import * # pylint: disable=wildcard-import, unused-wildcard-import, wrong-import-position
######################### Testing overrides #################################### ######################### Testing overrides ####################################
......
...@@ -3,7 +3,7 @@ Specific overrides to the base prod settings to make development easier. ...@@ -3,7 +3,7 @@ Specific overrides to the base prod settings to make development easier.
""" """
from os.path import abspath, dirname, join from os.path import abspath, dirname, join
from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
# Don't use S3 in devstack, fall back to filesystem # Don't use S3 in devstack, fall back to filesystem
del DEFAULT_FILE_STORAGE del DEFAULT_FILE_STORAGE
......
...@@ -6,7 +6,7 @@ Settings for load testing. ...@@ -6,7 +6,7 @@ Settings for load testing.
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import # pylint: disable=wildcard-import, unused-wildcard-import
from .aws import * from .production import *
# Disable CSRF for load testing # Disable CSRF for load testing
EXCLUDE_CSRF = lambda elem: elem not in [ EXCLUDE_CSRF = lambda elem: elem not in [
......
...@@ -4,7 +4,7 @@ Settings for OpenStack deployments. ...@@ -4,7 +4,7 @@ Settings for OpenStack deployments.
# We import the aws settings because that's currently where the base settings are stored for all deployments. # We import the aws settings because that's currently where the base settings are stored for all deployments.
# TODO - fix this when aws.py is split/renamed. # TODO - fix this when aws.py is split/renamed.
from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
SWIFT_AUTH_URL = AUTH_TOKENS.get('SWIFT_AUTH_URL') SWIFT_AUTH_URL = AUTH_TOKENS.get('SWIFT_AUTH_URL')
SWIFT_AUTH_VERSION = AUTH_TOKENS.get('SWIFT_AUTH_VERSION', 1) SWIFT_AUTH_VERSION = AUTH_TOKENS.get('SWIFT_AUTH_VERSION', 1)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment