<s> try : <EOL> from django . conf . urls import patterns , url <EOL> except ImportError : <EOL> from django . conf . urls . defaults import patterns , url , handler404 , handler500 <EOL> from django . http import HttpResponse <EOL> from django . shortcuts import render_to_response <EOL> from django . template import RequestContext <EOL> def simple_method_test ( request ) : <EOL> return HttpResponse ( str ( request . method ) ) <EOL> def simple_template_render ( request , template_name ) : <EOL> return render_to_response ( template_name , { <EOL> '<STR_LIT:foo>' : ( '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT:c>' ) , <EOL> '<STR_LIT:bar>' : True , <EOL> '<STR_LIT>' : None , <EOL> } , context_instance = RequestContext ( request ) ) <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , simple_method_test , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , simple_template_render , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> ) </s>
