diff --git a/examples/default/default/settings.py b/examples/default/default/settings.py index 7ef30f73..8cadba49 100644 --- a/examples/default/default/settings.py +++ b/examples/default/default/settings.py @@ -56,9 +56,7 @@ # 1. Django Core Settings # https://docs.djangoproject.com/en/5.1/ref/settings/ -ALLOWED_HOSTS = env.list( - "ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str -) +ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str) ASGI_APPLICATION = "default.asgi.application" @@ -261,7 +259,7 @@ SECRET_KEY = env.str( "SECRET_KEY", - default="495c3aa11779235fe674bb5ea3d9ab4ff137c7a8acbff81c8c79ebd1661eb703", + default="8ec93a6f300aca8e43ff199d364dc9ccdb623de2f083f8ede923043233c5d562", ) SECURE_HSTS_INCLUDE_SUBDOMAINS = PROD @@ -448,7 +446,7 @@ ) # sentry -if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme: +if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme: sentry_sdk.init( dsn=SENTRY_DSN.geturl(), environment=env.str( diff --git a/examples/default/pyproject.toml b/examples/default/pyproject.toml index e39ef1a4..8f8d9123 100644 --- a/examples/default/pyproject.toml +++ b/examples/default/pyproject.toml @@ -41,11 +41,11 @@ dependencies = [ "openpyxl", "psycopg[binary, pool]", "sentry-sdk[django]", - "whitenoise" + "whitenoise", ] -dynamic = ["version"] name = "default" requires-python = ">=3.12" +dynamic = ["version"] [project.optional-dependencies] docs = [ @@ -76,7 +76,7 @@ types = [ "django-stubs", "mypy", "types-croniter", - "types-openpyxl" + "types-openpyxl", ] [tool.bumpver] diff --git a/examples/default/templates/500.html b/examples/default/templates/500.html index b5cc34e6..e0c8464f 100644 --- a/examples/default/templates/500.html +++ b/examples/default/templates/500.html @@ -1,5 +1,4 @@ {% extends "base.html" %} - {% block content %}

500

Uh oh! Something went wrong on our end.

diff --git a/examples/default/templates/base.html b/examples/default/templates/base.html index 3e188be4..462bd2dc 100644 --- a/examples/default/templates/base.html +++ b/examples/default/templates/base.html @@ -1,27 +1,22 @@ {% load static %} {% load django_htmx %} {% load tailwind_cli %} - - {% block title %} Default {% endblock title %} - - {% block css %} {% endblock css %} - {% tailwind_css %} - {% block javascript_head %} {% endblock javascript_head %} - - {% block body %}
- {% block content %} {% endblock content %} -
- {% block javascript_foot %} {% endblock javascript_foot %} - {% endblock body %} - diff --git a/examples/postgis/default/settings.py b/examples/postgis/default/settings.py index ef76a7d0..fccce892 100644 --- a/examples/postgis/default/settings.py +++ b/examples/postgis/default/settings.py @@ -56,9 +56,7 @@ # 1. Django Core Settings # https://docs.djangoproject.com/en/5.1/ref/settings/ -ALLOWED_HOSTS = env.list( - "ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str -) +ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str) ASGI_APPLICATION = "default.asgi.application" @@ -261,7 +259,7 @@ SECRET_KEY = env.str( "SECRET_KEY", - default="ec352a3c15c61fe61dc917887da4796091ae6a4abe2263d40804c424c700d386", + default="25f74b8dd49dd7a581c165e0e3527b38266be873993a2c946e0f89434fa8cb65", ) SECURE_HSTS_INCLUDE_SUBDOMAINS = PROD @@ -448,7 +446,7 @@ ) # sentry -if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme: +if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme: sentry_sdk.init( dsn=SENTRY_DSN.geturl(), environment=env.str( diff --git a/examples/postgis/pyproject.toml b/examples/postgis/pyproject.toml index e39ef1a4..8f8d9123 100644 --- a/examples/postgis/pyproject.toml +++ b/examples/postgis/pyproject.toml @@ -41,11 +41,11 @@ dependencies = [ "openpyxl", "psycopg[binary, pool]", "sentry-sdk[django]", - "whitenoise" + "whitenoise", ] -dynamic = ["version"] name = "default" requires-python = ">=3.12" +dynamic = ["version"] [project.optional-dependencies] docs = [ @@ -76,7 +76,7 @@ types = [ "django-stubs", "mypy", "types-croniter", - "types-openpyxl" + "types-openpyxl", ] [tool.bumpver] diff --git a/examples/postgis/templates/base.html b/examples/postgis/templates/base.html index 3e188be4..462bd2dc 100644 --- a/examples/postgis/templates/base.html +++ b/examples/postgis/templates/base.html @@ -1,27 +1,22 @@ {% load static %} {% load django_htmx %} {% load tailwind_cli %} - - {% block title %} Default {% endblock title %} - - {% block css %} {% endblock css %} - {% tailwind_css %} - {% block javascript_head %} {% endblock javascript_head %} - - {% block body %}
- {% block content %} {% endblock content %} -
- {% block javascript_foot %} {% endblock javascript_foot %} - {% endblock body %} - diff --git a/examples/with_vite/pyproject.toml b/examples/with_vite/pyproject.toml index 6c2c6cc4..1f0dfca2 100644 --- a/examples/with_vite/pyproject.toml +++ b/examples/with_vite/pyproject.toml @@ -42,11 +42,11 @@ dependencies = [ "openpyxl", "psycopg[binary, pool]", "sentry-sdk[django]", - "whitenoise" + "whitenoise", ] -dynamic = ["version"] name = "with_vite" requires-python = ">=3.12" +dynamic = ["version"] [project.optional-dependencies] docs = [ @@ -77,7 +77,7 @@ types = [ "django-stubs", "mypy", "types-croniter", - "types-openpyxl" + "types-openpyxl", ] [tool.bumpver] @@ -92,12 +92,12 @@ version_pattern = "YYYY.MM.INC1" ".copier/project.yml" = [ 'current_version: {version}' ] -"tests/test_version.py" = [ - 'assert __version__ == "{version}"' -] "with_vite/__init__.py" = [ '__version__ = "{version}"' ] +"tests/test_version.py" = [ + 'assert __version__ == "{version}"' +] [tool.coverage.report] exclude_lines = [ diff --git a/examples/with_vite/templates/index.html b/examples/with_vite/templates/index.html index dd2784d7..3e78540b 100644 --- a/examples/with_vite/templates/index.html +++ b/examples/with_vite/templates/index.html @@ -1,5 +1,4 @@ {% extends "base.html" %} - {% block content %}

Index

diff --git a/examples/with_vite/with_vite/settings.py b/examples/with_vite/with_vite/settings.py index 62a7ee8e..ffb20dbc 100644 --- a/examples/with_vite/with_vite/settings.py +++ b/examples/with_vite/with_vite/settings.py @@ -56,9 +56,7 @@ # 1. Django Core Settings # https://docs.djangoproject.com/en/5.1/ref/settings/ -ALLOWED_HOSTS = env.list( - "ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str -) +ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str) ASGI_APPLICATION = "with_vite.asgi.application" @@ -262,7 +260,7 @@ SECRET_KEY = env.str( "SECRET_KEY", - default="71ce6e606fffba5f7c73e9f6be3c290678c0c6893cd43d4394e394abc4f1a5bc", + default="326504de335720992d1a35d276e2c6348154b024b6f8fce1e3bf1616b972159e", ) SECURE_HSTS_INCLUDE_SUBDOMAINS = PROD @@ -458,7 +456,7 @@ DJANGO_VITE_DEV_SERVER_PORT = 5173 # sentry -if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme: +if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme: sentry_sdk.init( dsn=SENTRY_DSN.geturl(), environment=env.str(