Is there any way to override admin templates with different files depending on Django version?
I've copied admin/index.hml
from Django admin templates, to achieve this: Django admin, hide a model, but there are changes in that template in different versions of Django, and sometimes the page breaks (specially with the deprecation of ADMIN_MEDIA_PREFIX
in Django 1.4)
I want to install my site in many servers with different versions of Django, but using just one unified code that notices the version automatically. Is that possible?
I've checked Django documentation, but I haven't found anything about this.