<s> from django . conf . urls import patterns , url , include <EOL> from rest_framework . routers import DefaultRouter <EOL> from django . conf import settings <EOL> from api import users as api_users <EOL> from api import data as api_data <EOL> from api import experiments as api_experiments <EOL> from api import operations as api_operations <EOL> from api import workflows as api_workflow <EOL> if settings . CLUSTER_TYPE == '<STR_LIT>' : <EOL> from api import results_storm as api_result <EOL> else : <EOL> from api import results_local as api_result <EOL> router = DefaultRouter ( ) <EOL> router . register ( r'<STR_LIT:data>' , api_data . DataViewSet , '<STR_LIT>' ) <EOL> router . register ( r'<STR_LIT>' , api_experiments . ExperimentViewSet , '<STR_LIT>' ) <EOL> router . register ( r'<STR_LIT>' , api_operations . OperationViewSet , '<STR_LIT>' ) <EOL> router . register ( r'<STR_LIT>' , api_result . ResultViewSet , '<STR_LIT>' ) <EOL> router . register ( r'<STR_LIT>' , api_users . UserViewSet , '<STR_LIT>' ) <EOL> router . register ( r'<STR_LIT>' , api_workflow . WorkFlowViewSet , '<STR_LIT>' ) <EOL> urlpatterns = patterns ( <EOL> '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , include ( router . urls ) ) , <EOL> ) </s>
