AdminSite detection support for various python/django versions