#!/usr/bin/env python # -*- coding: utf-8 -*- """ Urls for backend ember-django application. @author: Ioannis Stenos, Nick Vrionis """ from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from views import SessionView, StatusView, JobsView, HdfsView urlpatterns = patterns('', url(r'^$', 'backend.views.main_page'), url(r'^admin', include(admin.site.urls)), url(r'^api/users', SessionView.as_view()), url(r'^api/clusters', StatusView.as_view()), url(r'^api/clusterchoices', StatusView.as_view()), url(r'^api/jobs', JobsView.as_view()), url(r'^api/hdfs', HdfsView.as_view()) ) # if settings.DEBUG: # import debug_toolbar # urlpatterns += patterns('', # url(r'^__debug__/', include(debug_toolbar.urls)), # )
# -*- coding: utf-8 -*- """ Urls for backend ember-django application. @author: Ioannis Stenos, Nick Vrionis """ from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from views import SessionView, StatusView, JobsView, HdfsView, MainPageView, StatisticsView, NewsView, OrkaImagesView, VreServerView, VreImagesView urlpatterns = patterns('', url(r'^$', MainPageView.as_view()), url(r'^api/statistics', StatisticsView.as_view()), url(r'^api/newsitems', NewsView.as_view()), url(r'^api/orkaimages', OrkaImagesView.as_view()), url(r'^api/vreimages', VreImagesView.as_view()), url(r'^admin', include(admin.site.urls)), url(r'^api/users', SessionView.as_view()), url(r'^api/clusters', StatusView.as_view()), url(r'^api/clusterchoices', StatusView.as_view()), url(r'^api/jobs', JobsView.as_view()), url(r'^api/vreservers', VreServerView.as_view()), url(r'^api/hdfs', HdfsView.as_view())) # if settings.DEBUG: # import debug_toolbar # urlpatterns += patterns('', # url(r'^__debug__/', include(debug_toolbar.urls)), # )
url(r'^site/(?P<site_uid>[^/]+)/groups/(?P<group_uid>[^/]+)/$', GroupUpdate.as_view(), name='group'), url(r'^site/(?P<site_uid>[^/]+)/groups/(?P<group_uid>[^/]+)/delete/$', GroupDelete.as_view(), name='group_delete'), url(r'^site/(?P<slug>[^/]+)/jobs/search/', JobSearch.as_view(), name='jobsearch'), url(r'^site/(?P<site_uid>[^/]+)/jobs/(?P<pk>\d+)/restart/', JobRestarter.as_view(), name='restart_job' ), url(r'^site/(?P<site_uid>[^/]+)/jobs/(?P<pk>\d+)/info/', JobInfo.as_view(), name='job_info' ), url(r'^site/(?P<slug>[^/]+)/jobs/', JobsView.as_view(), name='jobs'), # Scripts url(r'^site/(?P<slug>[^/]+)/scripts/(?P<script_pk>\d+)/delete/', ScriptDelete.as_view(), name='delete_script'), url(r'^site/(?P<slug>[^/]+)/scripts/(?P<script_pk>\d+)/run/', ScriptRun.as_view(), name='run_script'), url(r'^site/(?P<slug>[^/]+)/scripts/(?P<script_pk>\d+)/', ScriptUpdate.as_view(), name='script'), url(r'^site/(?P<slug>[^/]+)/scripts/new/', ScriptCreate.as_view(), name='new_script'), url(r'^site/(?P<slug>[^/]+)/scripts/', ScriptList.as_view(),