diff --git a/scripts/node_version.py b/scripts/node_version.py index 5455428a3..c478c60cc 100644 --- a/scripts/node_version.py +++ b/scripts/node_version.py @@ -54,11 +54,12 @@ def update_ci_node_version(old_version: str, new_version: str) -> None: ) CI_YML.write_text(yml_content) + def update_production_node_version(old_version: str, new_version: str) -> None: dockerfile_content = PROD_DOCKERFILE.read_text() dockerfile_content = dockerfile_content.replace( - f'FROM docker.io/node:{old_version}', - f'FROM docker.io/node:{new_version}', + f"FROM docker.io/node:{old_version}", + f"FROM docker.io/node:{new_version}", ) PROD_DOCKERFILE.write_text(dockerfile_content) diff --git a/{{cookiecutter.project_slug}}/config/settings/base.py b/{{cookiecutter.project_slug}}/config/settings/base.py index ca7d6b531..22876096c 100644 --- a/{{cookiecutter.project_slug}}/config/settings/base.py +++ b/{{cookiecutter.project_slug}}/config/settings/base.py @@ -335,7 +335,7 @@ CELERY_WORKER_HIJACK_ROOT_LOGGER = False # ------------------------------------------------------------------------------ ACCOUNT_ALLOW_REGISTRATION = env.bool("DJANGO_ACCOUNT_ALLOW_REGISTRATION", True) # https://docs.allauth.org/en/latest/account/configuration.html -ACCOUNT_AUTHENTICATION_METHOD = "{{cookiecutter.username_type}}" +ACCOUNT_LOGIN_METHODS = {"{{cookiecutter.username_type}}"} # https://docs.allauth.org/en/latest/account/configuration.html ACCOUNT_EMAIL_REQUIRED = True {%- if cookiecutter.username_type == "email" %} diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt index 4a64186b5..8bf3eb2eb 100644 --- a/{{cookiecutter.project_slug}}/requirements/base.txt +++ b/{{cookiecutter.project_slug}}/requirements/base.txt @@ -32,7 +32,7 @@ uvicorn-worker==0.3.0 # https://github.com/Kludex/uvicorn-worker django==5.0.12 # pyup: < 5.1 # https://www.djangoproject.com/ django-environ==0.12.0 # https://github.com/joke2k/django-environ django-model-utils==5.0.0 # https://github.com/jazzband/django-model-utils -django-allauth[mfa]==65.3.1 # https://github.com/pennersr/django-allauth +django-allauth[mfa]==65.4.1 # https://github.com/pennersr/django-allauth django-crispy-forms==2.3 # https://github.com/django-crispy-forms/django-crispy-forms crispy-bootstrap5==2024.10 # https://github.com/django-crispy-forms/crispy-bootstrap5 {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}