nitely / Spirit

Spirit is a modern Python based forum built on top of Django framework
http://spirit.readthedocs.io
MIT License
1.16k stars 334 forks source link

Improve settings validations #318

Open nitely opened 1 year ago

nitely commented 1 year ago

Related to #316

We should validate settings, at least as a sort of sanity check. Most obvious settings to check are the installed apps and middleware. There are already some checks in place.

Example:

if not set(base.INSTALLED_APPS).issubset(settings.INSTALLED_APPS):
    raise ImproperlyConfigured("...")