Commit 65b73864 by Jim Abramson

Merge pull request #3 from edx/sef/fix-sqlite-location

Config by environment: sqlite DB location, email_use_tls
parents f7a38b36 eb87fb6b
...@@ -6,7 +6,7 @@ import platform ...@@ -6,7 +6,7 @@ import platform
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'notifier.db', # Or path to database file if using sqlite3. 'NAME': os.path.join(os.getenv('NOTIFIER_DB_DIR', '.'), 'notifier.db'),
'USER': '', # Not used with sqlite3. 'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
...@@ -55,6 +55,7 @@ EMAIL_HOST = os.getenv('EMAIL_HOST', 'localhost') ...@@ -55,6 +55,7 @@ EMAIL_HOST = os.getenv('EMAIL_HOST', 'localhost')
EMAIL_PORT = os.getenv('EMAIL_PORT', 1025) EMAIL_PORT = os.getenv('EMAIL_PORT', 1025)
EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER') EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD') EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD')
EMAIL_USE_TLS = os.getenv('EMAIL_USE_TLS')
# email settings independent of backend # email settings independent of backend
EMAIL_DOMAIN = os.getenv('EMAIL_DOMAIN', 'notifications.edx.org') EMAIL_DOMAIN = os.getenv('EMAIL_DOMAIN', 'notifications.edx.org')
......
Markdown is supported
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