Generic settings and API for Django