Skip to content

Commit

Permalink
change secret_key import to full import
Browse files Browse the repository at this point in the history
  • Loading branch information
danangmassandy committed Jun 26, 2024
1 parent c71ee83 commit 57240e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions django_project/core/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'core.wsgi.application'

# import SECRET_KEY into current namespace
# noinspection PyUnresolvedReferences
from core.settings.secret import SECRET_KEY # noqa

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
Expand Down Expand Up @@ -144,5 +148,3 @@

LOGIN_URL = '/account/login/'
LOGIN_REDIRECT_URL = '/'

from .secret import SECRET_KEY # noqa

0 comments on commit 57240e5

Please sign in to comment.