Support newer versions of Django

* Drop support for now obsolete Python 2.6
* Support fetching `ALLOWED_HOSTS` from env