<s> from django . conf . urls . defaults import patterns , url , include , handler404 , handler500 <EOL> from django . conf import settings <EOL> from django . contrib import admin <EOL> admin . autodiscover ( ) <EOL> urlpatterns = patterns ( '<STR_LIT>' ) <EOL> if settings . LOCAL_DEVELOPMENT : <EOL> urlpatterns += patterns ( "<STR_LIT>" , <EOL> url ( r"<STR_LIT>" % settings . MEDIA_URL [ <NUM_LIT:1> : ] , "<STR_LIT>" , { <EOL> "<STR_LIT>" : settings . MEDIA_ROOT } ) ) <EOL> urlpatterns += patterns ( "<STR_LIT>" , <EOL> url ( r'<STR_LIT>' , include ( "<STR_LIT>" ) ) , <EOL> url ( r'<STR_LIT>' , admin . site . root ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( "<STR_LIT>" ) ) <EOL> ) </s>
