<s> from django . shortcuts import render_to_response <EOL> from django . template import RequestContext <EOL> from django . utils . translation import ugettext as _ <EOL> from django . views . decorators . cache import never_cache <EOL> from satchmo_store . shop . models import Order <EOL> from satchmo_utils . views import bad_or_missing <EOL> def success ( request ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> order = Order . objects . from_request ( request ) <EOL> except Order . DoesNotExist : <EOL> return bad_or_missing ( request , _ ( '<STR_LIT>' ) ) <EOL> del request . session [ '<STR_LIT>' ] <EOL> return render_to_response ( '<STR_LIT>' , <EOL> { '<STR_LIT>' : order } , <EOL> context_instance = RequestContext ( request ) ) <EOL> success = never_cache ( success ) <EOL> def failure ( request ) : <EOL> return render_to_response ( <EOL> '<STR_LIT>' , <EOL> { } , <EOL> context_instance = RequestContext ( request ) <EOL> ) </s>
