Created
March 13, 2013 12:33
regex search/replace for django direct_to_template and redirect_to upgrade in 1.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
direct_to_template, \{'template':(.*?)} | |
TemplateView.as_view(template_name=$1) | |
redirect_to, \{'url': (.*?)} | |
RedirectView.as_view(url=$1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment