add django_heroku to settings
This commit is contained in:
@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
|
||||
|
||||
from pathlib import Path
|
||||
import os
|
||||
import django_heroku
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
@@ -134,4 +135,6 @@ MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
|
||||
LOGIN_URL = "/login"
|
||||
LOGIN_REDIRECT_URL = "/"
|
||||
LOGIN_REDIRECT_URL = "/"
|
||||
|
||||
django_heroku.settings(locals())
|
||||
Reference in New Issue
Block a user