def get_url(self, view_kwargs=None):
try:<EOL><INDENT>view_name = self.get_view_name()<EOL><DEDENT>except NotImplementedError:<EOL><INDENT>return '<STR_LIT:/>'<EOL><DEDENT>view_args = self.get_view_args()<EOL>view_kwargs = view_kwargs or self.get_view_kwargs()<EOL>return reverse(view_name, args=view_args, kwargs=view_kwargs)<EOL>
Returns the url to be used in the request factory.

Going the "old" way of implementing `get_view_name` is entirely
optional. If you just leave it out, the url will fall back to '/'.