Django redirecting in urls.py to another url

2019-09-01 10:04发布

问题:

I have this code in my urls.py

(r'^some/page/', RedirectView.as_view(url='http://google.com'))

why doesn't it go to google when I cleck the link ?