diff --git a/{{cookiecutter.project_dirname}}/.env_template b/{{cookiecutter.project_dirname}}/.env_template index c3428fc..1f52de8 100644 --- a/{{cookiecutter.project_dirname}}/.env_template +++ b/{{cookiecutter.project_dirname}}/.env_template @@ -9,7 +9,6 @@ DJANGO_DEBUG=True DJANGO_DEFAULT_FROM_EMAIL=info@example.org DJANGO_SECRET_KEY=__SECRETKEY__ DJANGO_SERVER_EMAIL=server@example.org -DJANGO_SESSION_COOKIE_DOMAIN=localhost DJANGO_SUPERUSER_EMAIL=info@example.org DJANGO_SUPERUSER_PASSWORD={{ cookiecutter.project_slug }} DJANGO_SUPERUSER_USERNAME=${USER} diff --git a/{{cookiecutter.project_dirname}}/docker-compose.yaml b/{{cookiecutter.project_dirname}}/docker-compose.yaml index ba03700..356f8c6 100644 --- a/{{cookiecutter.project_dirname}}/docker-compose.yaml +++ b/{{cookiecutter.project_dirname}}/docker-compose.yaml @@ -19,7 +19,6 @@ services: - DJANGO_DEFAULT_FROM_EMAIL - DJANGO_SECRET_KEY - DJANGO_SERVER_EMAIL - - DJANGO_SESSION_COOKIE_DOMAIN - DJANGO_SUPERUSER_EMAIL - DJANGO_SUPERUSER_PASSWORD - DJANGO_SUPERUSER_USERNAME diff --git a/{{cookiecutter.project_dirname}}/{{cookiecutter.django_settings_dirname}}/settings.py b/{{cookiecutter.project_dirname}}/{{cookiecutter.django_settings_dirname}}/settings.py index b6ff07c..586e340 100644 --- a/{{cookiecutter.project_dirname}}/{{cookiecutter.django_settings_dirname}}/settings.py +++ b/{{cookiecutter.project_dirname}}/{{cookiecutter.django_settings_dirname}}/settings.py @@ -180,7 +180,7 @@ class ProjectDefault(Configuration): # Session auth # https://docs.djangoproject.com/en/stable/ref/settings/#sessions - SESSION_COOKIE_DOMAIN = values.Value() + SESSION_COOKIE_DOMAIN = None SESSION_COOKIE_SECURE = True @@ -392,6 +392,11 @@ def DATABASES(self): # pragma: no cover X_FRAME_OPTIONS = "DENY" + # Session auth + # https://docs.djangoproject.com/en/stable/ref/settings/#sessions + + SESSION_COOKIE_DOMAIN = values.Value() + # Persistent connections # https://docs.djangoproject.com/en/stable/ref/databases/#general-notes