diff options
Diffstat (limited to 'localsettings.py')
-rw-r--r-- | localsettings.py | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/localsettings.py b/localsettings.py index d997789..0fdbde7 100644 --- a/localsettings.py +++ b/localsettings.py @@ -20,15 +20,25 @@ Read https://adamj.eu/tech/2020/03/16/use-pathlib-in-your-django-project/ print(" * importing troggle/localsettings.py") + +EXPOUSER = 'expo' +EXPOADMINUSER = 'expoadmin' +EXPOUSER_EMAIL = 'wookey@wookware.org' +EXPOADMINUSER_EMAIL = 'wookey@wookware.org' +from secret_credentials import * + +EMAIL_HOST = "smtp-auth.mythic-beasts.com" +EMAIL_HOST_USER = "django-test@klebos.net" # Philip Sargent really +EMAIL_PORT = 587 +EMAIL_USE_TLS = True +DEFAULT_FROM_EMAIL = "django-test@klebos.net" # ----------------------------------------------------------------- # THINK before you push this to a repo -# - have you checked that credentials.py is in .gitignore ? +# - have you checked that secret_credentials.py is in .gitignore ? # - we don't want to have to change the expo system password ! # ----------------------------------------------------------------- # default values, real secrets will be imported from credentials.py in future - - SQLITEFILE = "/home/philip/expo/troggle.sqlite" # can be ':memory:' PHOTOSREMOTE = False # if True, then re-routes urls in expofiles/photos to remote server. Not implemented yet @@ -114,7 +124,7 @@ DBMARIADB = { }, "NAME": "troggle", # Or path to database file if using sqlite3. "USER": "expo", - "PASSWORD": "my-secret-password-schwatzmooskogel", + "PASSWORD": MARIADB_SERVER_PASSWORD, "HOST": "", # Set to empty string for localhost. Not used with sqlite3. "PORT": "", # Set to empty string for default. Not used with sqlite3. } @@ -156,16 +166,7 @@ TEMPLATES = [ }, ] -EXPOUSER = "expo" -EXPOUSER_EMAIL = "philip.sargent@gmail.com" -EXPOADMINUSER = "expoadmin" -EXPOADMINUSER_EMAIL = "philip.sargent@gmail.com" -EMAIL_HOST = "smtp-auth.mythic-beasts.com" -EMAIL_HOST_USER = "django-test@klebos.net" # Philip Sargent really -EMAIL_PORT = 587 -EMAIL_USE_TLS = True -DEFAULT_FROM_EMAIL = "django-test@klebos.net" SURVEX_DATA = REPOS_ROOT_PATH / "loser" DRAWINGS_DATA = REPOS_ROOT_PATH / "drawings" |