<s> from django . conf import settings <EOL> from django . conf . urls . defaults import patterns , include <EOL> from django . contrib import admin <EOL> import logging <EOL> log = logging . getLogger ( '<STR_LIT>' ) <EOL> admin . autodiscover ( ) <EOL> urlpatterns = getattr ( settings , '<STR_LIT>' , [ ] ) <EOL> adminpatterns = patterns ( '<STR_LIT>' , <EOL> ( r'<STR_LIT>' , include ( admin . site . urls ) ) , <EOL> ) <EOL> if urlpatterns : <EOL> urlpatterns += adminpatterns <EOL> else : <EOL> urlpatterns = adminpatterns <EOL> if getattr ( settings , '<STR_LIT>' , False ) : <EOL> log . debug ( "<STR_LIT>" , settings . MEDIA_ROOT ) <EOL> baseurlregex = r'<STR_LIT>' <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> ( baseurlregex , '<STR_LIT>' , <EOL> { '<STR_LIT>' : settings . MEDIA_ROOT } ) , <EOL> ( r'<STR_LIT>' , '<STR_LIT>' , <EOL> { '<STR_LIT>' : settings . MEDIA_ROOT } ) , <EOL> ) </s>
