Skip to content

Commit

Permalink
feat(settings.py): add AccountMiddleware to MIDDLEWARE list for bette…
Browse files Browse the repository at this point in the history
…r account management

style(settings.py): remove trailing whitespace in GCP config comment for cleaner code
  • Loading branch information
Hesbon5600 committed Aug 12, 2024
1 parent 294bb65 commit 540fe92
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'allauth.account.middleware.AccountMiddleware',
]

ROOT_URLCONF = '{{cookiecutter.project_slug}}.urls'
Expand Down Expand Up @@ -284,7 +285,7 @@
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"


# GCP config
# GCP config
def google_service_account_config():
# base64 encoded service_account.json file
service_account_config = env.str("GS_CREDENTIALS", "")
Expand Down

0 comments on commit 540fe92

Please sign in to comment.