[Answer]-Modifying and creating sites in djangos admin app

1👍

I think you need to create your own AdminSite for custom purposes and keep default as it is. More about this you can find here: https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#adminsite-objects and here https://docs.djangoproject.com/en/dev/ref/contrib/admin/#multiple-admin-sites-in-the-same-urlconf

Update:

You need to edit get_urls method of AdminSite class – add:

url(r'^$', wrap(self.old_index), name='old_index')

to urlpatterns variable. And rename old index method to old_index.

👤zymud

Leave a comment