Another option for customizing the admin interface is to simply override the admin URL patterns with your own. You can override patterns that normally link to admin views by adding your own patterns before including the django.contrib.admin.urls URLconf file.
Using this method, you can have admin URLs access your own custom views. For example, if you wanted to override the admin index view with a custom view function, you could add the following URL pattern:
(r'^admin/$', 'mySite.CustomViews.views.site_index'),
You can actually do some processing in your view function and then call the admin view function to render the view. However, you must know exactly what you are doing.
Try It Yourself: Override the Admin Logout URLIn this section, you will override the admin/logout URL to link to the iFriends.Home.views.logout_user view function. Follow these steps to override the URL:
|