I want to add an upload button to the default Django admin, as shown below:

To do so I overrode the admin/index.html template to add the button, but how can I override the admin view in order to process it?
What I want to achieve is to display a success message, or the error message, once the file is uploaded.
The index view is on the
AdminSiteinstance. To override it, you’ll have to create a customAdminSitesubclass (i.e., not usingdjango.contrib.admin.siteanymore):You might want to reference the original method at: https://github.com/django/django/blob/1.4.1/django/contrib/admin/sites.py
Then, you create an instance of this class, and use this instance, rather than
admin.siteto register your models.Then, later:
You can find more detail and examples at: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#adminsite-objects