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.
π€Daniel Roseman
0π
You are not rendering the object called years
that you use in the template {% for year, months in years %}
π€juankysmith
- [Answer]-Error on host m/c β can't establish a connection to the server at 127.0.0.1:8888
- [Answer]-Django: handler404 and TemplateView.as_view
- [Answer]-Check admin login on my django app
- [Answer]-Django β posting comments using Ajax
- [Answer]-Django, Grunt, and S3: Possible to have image URLs in CSS?
Source:stackexchange.com