w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
"Missing Positional Arguments"

Since you are using positional arguments, django urls are expecting the named group patterns to have the same name as that of the argument (to the view)

So, change

calendar/(d{4})/(0?[1-9]|1[012])/(?P<user_id>d+)/

to

calendar/(?P<year>d{4})/(?P<month>0?[1-9]|1[012])/(?P<user_id>d+)/

in your urls.py





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.