<s> from django . conf import settings <EOL> from django . conf . urls import patterns , include , url <EOL> from django . contrib import admin <EOL> from django . core . management import call_command <EOL> admin . autodiscover ( ) <EOL> def bad ( request ) : <EOL> """<STR_LIT>""" <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , include ( admin . site . urls ) ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> ( r'<STR_LIT>' , bad ) , <EOL> ) <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( '<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> ) <EOL> if settings . DEBUG : <EOL> media_url = settings . MEDIA_URL . lstrip ( '<STR_LIT:/>' ) . rstrip ( '<STR_LIT:/>' ) <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> ( r'<STR_LIT>' % media_url , '<STR_LIT>' , <EOL> { '<STR_LIT>' : settings . MEDIA_ROOT } ) , <EOL> ) <EOL> from django . contrib . staticfiles . urls import staticfiles_urlpatterns <EOL> urlpatterns += staticfiles_urlpatterns ( ) <EOL> if getattr ( settings , '<STR_LIT>' , False ) : <EOL> call_command ( '<STR_LIT>' ) </s>
