<s> from django . conf . urls . defaults import * <EOL> from django . contrib import admin <EOL> from django . conf import settings <EOL> from tastypie . api import Api <EOL> from journalmanager import views , models <EOL> from api import resources_v1 , resources_v2 <EOL> admin . autodiscover ( ) <EOL> v1_api = Api ( api_name = '<STR_LIT>' ) <EOL> v1_api_resources = [ <EOL> resources_v1 . JournalResource ( ) , <EOL> resources_v1 . UserResource ( ) , <EOL> resources_v1 . UseLicenseResource ( ) , <EOL> resources_v1 . SponsorResource ( ) , <EOL> resources_v1 . CollectionResource ( ) , <EOL> resources_v1 . IssueResource ( ) , <EOL> resources_v1 . SectionResource ( ) , <EOL> resources_v1 . PressReleaseResource ( ) , <EOL> resources_v1 . AheadPressReleaseResource ( ) , <EOL> ] <EOL> for res in v1_api_resources : <EOL> v1_api . register ( res ) <EOL> v2_api = Api ( api_name = '<STR_LIT>' ) <EOL> v2_api_resources = [ <EOL> resources_v2 . JournalResource ( ) , <EOL> resources_v2 . UserResource ( ) , <EOL> resources_v2 . UseLicenseResource ( ) , <EOL> resources_v2 . SponsorResource ( ) , <EOL> resources_v2 . CollectionResource ( ) , <EOL> resources_v2 . IssueResource ( ) , <EOL> resources_v2 . SectionResource ( ) , <EOL> resources_v2 . PressReleaseResource ( ) , <EOL> resources_v2 . AheadPressReleaseResource ( ) , <EOL> resources_v2 . PressReleaseTranslationResource ( ) , <EOL> resources_v2 . EditorialBoardResource ( ) , <EOL> resources_v2 . RoleTypeResource ( ) , <EOL> resources_v2 . EditorialMemberResource ( ) , <EOL> resources_v2 . LanguageResource ( ) , <EOL> resources_v2 . RoleTypeTranslationResource ( ) , <EOL> ] <EOL> for res in v2_api_resources : <EOL> v2_api . register ( res ) <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , views . index , name = '<STR_LIT:index>' ) , <EOL> url ( r'<STR_LIT>' , views . article_index , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , views . article_detail , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( admin . site . urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> ( r'<STR_LIT>' , include ( v1_api . urls ) ) , <EOL> ( r'<STR_LIT>' , include ( v2_api . urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , views . trash_listing , name = "<STR_LIT>" ) , <EOL> url ( r'<STR_LIT>' , <EOL> views . generic_bulk_action , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , views . ajx_list_users , name = "<STR_LIT>" ) , <EOL> url ( r'<STR_LIT>' , views . add_collection , name = '<STR_LIT>' ) , <EOL> ) <EOL> if settings . DEBUG : <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , <EOL> { '<STR_LIT>' : settings . MEDIA_ROOT } ) , <EOL> ) </s>
