<s> from . forms import SetupForm <EOL> from django . contrib . auth . decorators import login_required <EOL> from django . core . urlresolvers import reverse <EOL> from django . shortcuts import redirect <EOL> from splunkdj . decorators . render import render_to <EOL> from splunkdj . setup import create_setup_view_context <EOL> @ login_required <EOL> def home ( request ) : <EOL> return redirect ( '<STR_LIT>' ) <EOL> @ render_to ( '<STR_LIT>' ) <EOL> @ login_required <EOL> def setup ( request ) : <EOL> result = create_setup_view_context ( <EOL> request , <EOL> SetupForm , <EOL> reverse ( '<STR_LIT>' ) ) <EOL> service = request . service <EOL> app_name = service . namespace [ '<STR_LIT>' ] <EOL> service . apps [ app_name ] . post ( '<STR_LIT>' ) <EOL> return result </s>
