--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/601d6721-4c0b-4013-be02-e7ffbe8a1ca7%40googlegroups.com.
"""Development settings and globals."""
from __future__ import absolute_import
import os
from os.path import join, normpath
from ecommerce.settings import get_lms_url
from ecommerce.settings.base import *
from ecommerce.settings.logger import get_logger_config
# DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# END DEBUG CONFIGURATION
# EMAIL CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# END EMAIL CONFIGURATION
# DATABASE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': ‘omitted’,
'NAME': omitted,
'USER': ‘omitted’,
'PASSWORD': ‘omitted’,
'HOST': ‘omitted’,
'PORT': ‘omitted’,
'ATOMIC_REQUESTS': True,
}
}
# END DATABASE CONFIGURATION
# CACHE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
}
# END CACHE CONFIGURATION
# TOOLBAR CONFIGURATION
# See: http://django-debug-toolbar.readthedocs.org/en/latest/installation.html#explicit-setup
if os.environ.get('ENABLE_DJANGO_TOOLBAR', False):
INSTALLED_APPS += (
'debug_toolbar',
)
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
DEBUG_TOOLBAR_PATCH_SETTINGS = False
# http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
INTERNAL_IPS = ('127.0.0.1',)
# END TOOLBAR CONFIGURATION
# URL CONFIGURATION
ECOMMERCE_URL_ROOT = 'http://[my_site]:8002'
LMS_URL_ROOT = 'http://[my_site]'
# The location of the LMS heartbeat page
LMS_HEARTBEAT_URL = get_lms_url('/heartbeat')
# The location of the LMS student dashboard
LMS_DASHBOARD_URL = get_lms_url('/dashboard')
OAUTH2_PROVIDER_URL = get_lms_url('/oauth2')
COMMERCE_API_URL = get_lms_url('/api/commerce/v1/')
# END URL CONFIGURATION
# AUTHENTICATION
# Set these to the correct values for your OAuth2/OpenID Connect provider (e.g., devstack)
SOCIAL_AUTH_EDX_OIDC_KEY = '0b55d11db7c80221524f'
SOCIAL_AUTH_EDX_OIDC_SECRET = ‘omitted, but verified same as Django Admin>Oauth2>Clients>Client Secret’
SOCIAL_AUTH_EDX_OIDC_URL_ROOT = OAUTH2_PROVIDER_URL
SOCIAL_AUTH_EDX_OIDC_ID_TOKEN_DECRYPTION_KEY = SOCIAL_AUTH_EDX_OIDC_SECRET
JWT_AUTH.update({
'JWT_SECRET_KEY': ‘Omitted, but verified same as LMS.AUTH.JSON ECOMMERCE_API_SIGNING_KEY,
'JWT_ISSUERS': (OAUTH2_PROVIDER_URL,),
})
# END AUTHENTICATION
# ORDER PROCESSING
ENROLLMENT_API_URL = get_lms_url('/api/enrollment/v1/enrollment')
ENROLLMENT_FULFILLMENT_TIMEOUT = 15 # devstack is slow!
EDX_API_KEY = 'Omitted, but verified same as lms.auth.json EDX_API_KEY'
# END ORDER PROCESSING
# PAYMENT PROCESSING
PAYMENT_PROCESSOR_CONFIG = {
'cybersource': {
'soap_api_url': 'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.115.wsdl',
'merchant_id': ‘omitted’,
'transaction_key': ‘omitted’,
'profile_id': ‘omitted’,
'access_key': ‘omitted’,
'secret_key': ‘omitted’,
'payment_page_url': 'https://testsecureacceptance.cybersource.com/pay',
'receipt_page_url': get_lms_url('/commerce/checkout/receipt/'),
'cancel_page_url': get_lms_url('/commerce/checkout/cancel/'),
},
'paypal': {
'mode': 'sandbox',
'client_id': ‘omitted’,
'client_secret': ‘omitted’,
'receipt_url': get_lms_url('/commerce/checkout/receipt/'),
'cancel_url': get_lms_url('/commerce/checkout/cancel/'),
'error_url': get_lms_url('/commerce/checkout/error/'),
},
}
# END PAYMENT PROCESSING
# CELERY
BROKER_URL = 'amqp://'
# Uncomment this to run tasks in-process (i.e., synchronously).
# CELERY_ALWAYS_EAGER = True
# END CELERY
ENABLE_AUTO_AUTH = True
LOGGING = get_logger_config(debug=DEBUG, dev_env=True, local_loglevel='DEBUG')
#####################################################################
# Lastly, see if the developer has any local overrides.
if os.path.isfile(join(dirname(abspath(__file__)), 'private.py')):
from .private import * # pylint: disable=import-error
******END local.py*********
******BEGIN selected lms.env.json settings ******
"ECOMMERCE_API_URL": "http://[my_site]:8002/api/v2/",
"ECOMMERCE_PUBLIC_URL_ROOT": "http://[my_site]:8002/",
"JWT_EXPIRATION": 30,
"JWT_ISSUER": "http://[my_site]/oauth2",
"OAUTH_ENFORCE_SECURE": false,
"OAUTH_OIDC_ISSUER": "http://[my_site]/oauth2",
"FEATURES": {
"AUTH_USE_OPENID_PROVIDER": true,
"AUTOMATIC_AUTH_FOR_TESTING": false,
"CERTIFICATES_ENABLED": true,
"EMBARGO": true,
"ENABLE_COMBINED_LOGIN_REGISTRATION": true,
"ENABLE_CORS_HEADERS": false,
"ENABLE_COUNTRY_ACCESS": false,
"ENABLE_CROSS_DOMAIN_CSRF_COOKIE": false,
"ENABLE_DISCUSSION_HOME_PANEL": false,
"ENABLE_DISCUSSION_SERVICE": false,
"ENABLE_EDXNOTES": false,
"ENABLE_INSTRUCTOR_ANALYTICS": false,
"ENABLE_MKTG_SITE": false,
"ENABLE_ONLOAD_BEACON": false,
"ENABLE_OAUTH2_PROVIDER": true,
"ENABLE_S3_GRADE_DOWNLOADS": true,
"ENABLE_SYSADMIN_DASHBOARD": true,
"ENABLE_THIRD_PARTY_AUTH": false,
"ENABLE_VIDEO_BEACON": false,
"ENABLE_VIDEO_UPLOAD_PIPELINE": false,
"PREVIEW_LMS_BASE": "",
"SUBDOMAIN_BRANDING": false,
"SUBDOMAIN_COURSE_LISTINGS": false,
"USE_CUSTOM_THEME": false,
"ENABLE_SHOPPING_CART": false,
"ENABLE_PAID_COURSE_REGISTRATION": false
},
****END selected lms.env.json settings******
****BEGIN selected lms.auth.json settings*****
LMS.AUTH.JSON
"ECOMMERCE_API_SIGNING_KEY": “Omitted, but verified same as Commerce local.py JWT_SECRET_KEY”,
"EDX_API_KEY": "Omitted, but verified same as local.py EDX_API_KEY",
****END selected lms.auth.json settings*******
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/8added59-bef6-43ae-b9ab-096c0cfe0aae%40googlegroups.com.
John, in the future, it would be much better to use a pastebin service like GitHub Gist for this sort of thing. It makes your code much easier to read, and with Gist, you can specifically include multiple different files in one gist, as well.David Baumgold
--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/c92a3f63-b045-456a-a028-87e14d208c3a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/389e5d51-f85a-4b13-9d4d-0bb65ee0d464%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CAOb9m_GNY8cDO3%2BRMWfvqdVAgxnyzSO3Z7KT4hiqQqQnB606Tw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/986B24CFD9DAD67D.CF1F7D84-0492-4D96-97B6-BADFF244D618%40mail.outlook.com.