[Answer]-Django passing view url variables inside a template

1👍

Change to the following:

In your view file:

def month(request, year=1, month=1, change="None"):

In your url file:

url(r'^month/(?P<year>\d{4})/(?P<month>\d{2})/(?P<change>\w+)/$', 'courseCalendar.views.month', name="month"),

After you change to the above, post here the error message if you’re receiving an error.

Leave a comment