[Answer]-Can't display templates properly using Django

1πŸ‘

βœ…

So I’m guessing that main is the view that produces the year/month list. The trouble is that the second regex for that matches everything, because you don’t anchor it. You need this:

(r'^$', main),

so that it only matches the string where there is nothing between the start and the end – ie the empty string.

0πŸ‘

You are not rendering the object called years that you use in the template {% for year, months in years %}

πŸ‘€juankysmith

Leave a comment