If you ever get to the point that you need to optimize your website, I recommend you check out the Django-Debug-Toolbar. It provides a pretty amazing set of features that can be used to trace slow pieces of code, investigate SQL queries, debug headers, requests, and even trace Django templates.

There are a lot of instructions around the web on how to get it up and running - but none of them seemed to work for me. Here is what I had to do:

First thing first, install the django debug toolbar using pip:

After the toolbar is installed, update your urls.py file to support the debug urls.

Next, you need to add the specific options to your settings.py file. You can read more about the different options here, but I just like to added them all:

Make sure they’re available in DEBUG mode only.

Finally, collect your static files to get the css, js and html that come with it package

You should now see the debug tool bar on the left side of your site.

Couple last notes:

• to run collectstatic you need to have the following variables set
• to view the html in the debug-tool-bar, you probably need the following code at the bottom of your main urls.py file