<s> from django . shortcuts import redirect , render <EOL> from import_export_google_civic . controllers import import_voterinfo_from_json <EOL> def import_voterinfo_from_json_view ( request ) : <EOL> """<STR_LIT>""" <EOL> if not request . user . is_authenticated ( ) : <EOL> return redirect ( '<STR_LIT>' ) <EOL> save_to_db = True <EOL> json_from_google = import_voterinfo_from_json ( save_to_db ) <EOL> template_values = { <EOL> '<STR_LIT>' : json_from_google , <EOL> } <EOL> return render ( request , '<STR_LIT>' , template_values ) </s>
