mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 23:47:04 +00:00
New user login/logoff system using standard Dj
This commit is contained in:
@@ -14,6 +14,8 @@ a system-wide location rather than just a local directory.
|
||||
|
||||
This file is included at the end of the main troggle/settings.py file so that
|
||||
it overwrites defaults in that file.
|
||||
|
||||
Read https://adamj.eu/tech/2020/03/16/use-pathlib-in-your-django-project/
|
||||
"""
|
||||
|
||||
print(" * importing troggle/localsettings.py")
|
||||
@@ -24,11 +26,11 @@ print(" * importing troggle/localsettings.py")
|
||||
# - we don't want to have to change the expo system password !
|
||||
#-----------------------------------------------------------------
|
||||
# default values, real secrets imported from credentials.py
|
||||
# EXPOUSERPASS = "nnn:gggggg"
|
||||
# EMAIL_HOST_PASSWORD = "insert-real-email-password-here"
|
||||
from credentials import EXPOUSERPASS
|
||||
from credentials import EMAIL_HOST_PASSWORD
|
||||
|
||||
SECRET_KEY = "z514d%crn*fpd*ewt_27m_r^a#vaeozn0---^fj!355qki*vj2"
|
||||
EXPOUSERPASS = "161:gosser"
|
||||
EXPOADMINUSERPASS = "gosser:161"
|
||||
EMAIL_HOST_PASSWORD = "smtp-django-test"
|
||||
|
||||
EXPOFILESREMOTE = False # if True, then re-routes urls in expofiles to remote sever. Tests are then less accurate.
|
||||
#SECURE_SSL_REDIRECT = True # breaks 7 tests in test suite 301 not 200 (or 302) and runserver fails completely
|
||||
@@ -127,11 +129,13 @@ TEMPLATES = [
|
||||
]
|
||||
|
||||
# Passwords are loaded from credentials.py by settings.py
|
||||
EXPOUSERPASS = "nnn:gggggg" # overwritten by loading from credentials.py
|
||||
EMAIL_HOST_PASSWORD = "insert-real-email-password-here" # overwritten by loading from credentials.py
|
||||
#EXPOUSERPASS = "nnn:gggggg" # overwritten by loading from credentials.py
|
||||
#EMAIL_HOST_PASSWORD = "insert-real-email-password-here" # overwritten by loading from credentials.py
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user