Parcourir la source

Change BASE_URL to WAGTAILADMIN_BASE_URL to silence Wagtail 3.0.1 warning

Matt Westcott il y a 2 ans
Parent
commit
d17c0dec80
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      bakerydemo/settings/dev.py
  2. 2 2
      bakerydemo/settings/production.py

+ 2 - 2
bakerydemo/settings/dev.py

@@ -4,7 +4,7 @@ DEBUG = True
 
 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 
-# BASE_URL required for notification emails
-BASE_URL = 'http://localhost:8000'
+# WAGTAILADMIN_BASE_URL required for notification emails
+WAGTAILADMIN_BASE_URL = 'http://localhost:8000'
 
 ALLOWED_HOSTS = ['*']

+ 2 - 2
bakerydemo/settings/production.py

@@ -30,8 +30,8 @@ ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '*').split(';')
 
 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 
-# BASE_URL required for notification emails
-BASE_URL = 'http://localhost:8000'
+# WAGTAILADMIN_BASE_URL required for notification emails
+WAGTAILADMIN_BASE_URL = 'http://localhost:8000'
 
 db_from_env = dj_database_url.config(conn_max_age=500)
 DATABASES['default'].update(db_from_env)