@classonlymethod<EOL><INDENT>def urls(cls):<DEDENT>
class_name = cls.get_class_name()<EOL>if django.VERSION >= (<NUM_LIT:2>, <NUM_LIT:0>):<EOL><INDENT>return path('<STR_LIT>'.format(class_name), include([<EOL>path('<STR_LIT>', cls.create().as_view(), name='<STR_LIT>'.format(class_name)),<EOL>path('<STR_LIT>', cls.update().as_view(), name='<STR_LIT>'.format(class_name)),<EOL>path('<STR_LIT>', cls.delete().as_view(), name='<STR_LIT>'.format(class_name)),<EOL>]))<EOL><DEDENT>else:<EOL><INDENT>return url(r'<STR_LIT>'.format(class_name), include([<EOL>url(r'<STR_LIT>', cls.create().as_view(), name='<STR_LIT>'.format(class_name)),<EOL>url(r'<STR_LIT>', cls.update().as_view(), name='<STR_LIT>'.format(class_name)),<EOL>url(r'<STR_LIT>', cls.delete().as_view(), name='<STR_LIT>'.format(class_name)),<EOL>]))<EOL><DEDENT>
generate url and url_name for create、update and delete view
default url_name is classname_name