Python的Django框架入门踩过的坑(十三)
重写View的as_view方法的时候,需要声明为@classmethod,否则会出现以下错误TypeError at /user/addressas_view() missing 1 required positional argument: 'cls'Request Method: GETRequest URL: http://127.0.0.1:8000/user/addressDjango...