This will raise a KeyError if `settings.FEATURES` does not have an `ENABLE_FEEDBACK_SUBMISSION` key. You want to do `if settings.FEATURES.get("ENABLE_FEEDBACK_SUBMISSION", False):`, which is resistant to that sort of failure.