refactor to make django-compatible
settings