acdh-oeaw / apis-acdhch-default-settings

Default settings for APIS instances at the ACDH
1 stars 0 forks source link

Suggestion: class based / type-hinted / enumerated settings with default values. #83

Open gregorpirgie opened 1 year ago

gregorpirgie commented 1 year ago

I suggest to look into a pragmatic solution to re-implement our django-settings-file in a way so that we (ideally) get:

... from our IDE.

Possible candidates:

Or consider a custom implementation that fits our use case.

koeaw commented 1 year ago

Just found djantic, would this cover the same use case?

sennierer commented 1 year ago

decided to evaluate the different approaches for settings (including django-environ) related to acdh-oeaw/apis-acdhch-default-settings#48

koeaw commented 1 year ago

There's also django-ninja, which seems to do more than what was suggested in this ticket.

Summary: "Django Ninja is a web framework for building APIs with Django and Python 3.6+ type hints."