Remix.run Logo
tecoholic a day ago

I use a project generator tool for a Django project. One of the things it does is generate setting file using string manipulation. I have been trying to think of a more sane way to do this. leverage something like dataclass or Pydantic models to have the typing information available and render a typed and validated Python object. If Django ever made that possible, it would be amazing for dev ex.

Nextgrid 19 hours ago | parent [-]

https://docs.pydantic.dev/latest/concepts/pydantic_settings/