Skip to content

Commit

Permalink
fix to squash later
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Lepekhin committed Nov 28, 2023
1 parent 3368057 commit c9fe6e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DatabaseSettings(BaseDBConfig):
class GeneralSettings(BaseSettings):
# https://docs.djangoproject.com/en/dev/ref/settings/
SECRET_KEY: str = Field(default=Undefined, validation_alias="DJANGO_SECRET_KEY")
DEBUG: bool = Field(default=False, validation_alias="DEBUG")
DEBUG: bool = Field(default=False)
DATABASES: DatabaseSettings = DatabaseSettings()

ALLOWED_HOSTS: List[str] = []
Expand Down
3 changes: 2 additions & 1 deletion tests/test_to_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
def test_to_django_settings():
class DatabaseConfig(BaseDBConfig):
default: PostgresDsn = Field(
default="postgres://user:password@hostname:5432/dbname", env="DATABASE_URL"
default="postgres://user:password@hostname:5432/dbname",
validation_alias="DATABASE_URL",
)

class GeneralSettings(BaseSettings):
Expand Down

0 comments on commit c9fe6e6

Please sign in to comment.