Let' s add some links to the admin dashboard in a format that matches the way apps are listed. We'll add links to Google Analytics for our page traffic analysis and Google Webmaster tools to help get us indexed properly in Google. Having these links available in your admin page is handy when administering your site.
Copy the django/contrib/admin/index.html
file to your mycompany/templates/admin
directory. This page controls the appearance of the dashboard in the admin, so we'll be adding the links at its top.
When our apps are listed on this page, they appear automatically as part of the inner workings of the admin app. We don't want to alter this functionality as, when a new app is added in the future, we don't want to manually add it to the admin home page. By adding additional lines to the index.html
file, we'll get our extra content added without changing the way the apps are loaded.
Look for the content-main
div in the...