mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-28 16:25:44 +08:00
Added debug mode for frontend to handle email activation link changes
This commit is contained in:
parent
a2d1fb8081
commit
f550134998
2 changed files with 9 additions and 20 deletions
|
@ -29,6 +29,7 @@ SECRET_KEY = str(os.getenv('SECRET_KEY'))
|
|||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
FRONTEND_DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*', '127.0.0.1', 'localhost', '10.0.10.32', '10.0.10.8']
|
||||
|
||||
|
@ -216,7 +217,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
|||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
DOMAIN = ''
|
||||
if (DEBUG):
|
||||
if (FRONTEND_DEBUG):
|
||||
DOMAIN = 'exp'
|
||||
else:
|
||||
DOMAIN = 'stude'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue