Skip to content

Commit

Permalink
fix(cfg): prod reconfig according rest deployment?!
Browse files Browse the repository at this point in the history
  • Loading branch information
hUwUtao committed May 25, 2024
1 parent 40015ab commit 419ba27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions fuhoblog/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(PROJECT_DIR)

SECRET_KEY = os.environ["SECRET_KEY"] or ""
SECRET_KEY = os.environ['SECRET_KEY'] or ''

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
Expand All @@ -41,6 +41,7 @@
'wagtail_localize',
'wagtail_localize.locales',
# API engine
'rest_framework',
'wagtail.api.v2',
# Whatever
'wagtail.contrib.forms',
Expand Down Expand Up @@ -190,6 +191,4 @@

# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
WAGTAILADMIN_BASE_URL = 'http://example.com'

CSRF_COOKIE_SECURE = True
WAGTAILADMIN_BASE_URL = 'http://example.com'
2 changes: 1 addition & 1 deletion fuhoblog/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

INSTALLED_APPS += ['rest_framework']
INSTALLED_APPS += []

try:
from .local import *
Expand Down

0 comments on commit 419ba27

Please sign in to comment.