<s> from django . conf import settings <EOL> from django . conf . urls import patterns , include , url <EOL> from django . conf . urls . static import static <EOL> from django . contrib import admin <EOL> from django . views . generic import TemplateView <EOL> from tastypie . api import Api <EOL> from inspections . api import resources <EOL> admin . autodiscover ( ) <EOL> v1_api = Api ( api_name = '<STR_LIT>' ) <EOL> v1_api . register ( resources . EstablishmentResource ( ) ) <EOL> v1_api . register ( resources . InspectionResource ( ) ) <EOL> v1_api . register ( resources . ViolationResource ( ) ) <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , include ( admin . site . urls ) ) , <EOL> url ( r'<STR_LIT>' , TemplateView . as_view ( template_name = "<STR_LIT>" ) , <EOL> name = '<STR_LIT>' ) , <EOL> ( r'<STR_LIT>' , include ( v1_api . urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> ) + static ( settings . MEDIA_URL , document_root = settings . MEDIA_ROOT ) </s>
