On Saturday, 20 August 2011 20:20:12 UTC+1, Joshua Russo wrote:
>
> I setup this patter in url.py
>
> url(r'^events/(?P\d{4})/(?P\d{2})/$', events,
> name="eventsMonth")
>
> in my template I have this tag
>
> {% url eventsMonth year=month.prev.year month=month.prev.month %}
>
> but I keep
Never mind I got it. I changed my url patter to
url(r'^events/(?P\d{4})/(?P\d{1,2})/$', events,
name="eventsMonth")
I'm still not very sharp on my regex skills. I realized that {2} required a
2 digit number
--
You received this message because you are subscribed to the Google Groups
"Dj
I setup this patter in url.py
url(r'^events/(?P\d{4})/(?P\d{2})/$', events,
name="eventsMonth")
in my template I have this tag
{% url eventsMonth year=month.prev.year month=month.prev.month %}
but I keep getting
Caught NoReverseMatch while rendering: Reverse for 'eventsMonth' wit
3 matches
Mail list logo