forked from Bartzi/LabShare
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurls.py
More file actions
20 lines (17 loc) · 863 Bytes
/
urls.py
File metadata and controls
20 lines (17 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views
from labshare import views
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^$', views.index, name="index"),
url(r'^reserve$', views.reserve, name="reserve"),
url(r'^message$', views.send_message, name="send_message"),
url(r'^gpus$', views.gpus, name="gpus_for_device"),
url(r'^gpu/(?P<gpu_id>[\d]+)/done', views.gpu_done, name="done_with_gpu"),
url(r'^gpu/(?P<gpu_id>[\d]+)/cancel', views.gpu_cancel, name="cancel_gpu"),
url(r'^gpu/info', views.gpu_info, name="gpu_info"),
url(r'^accounts/login', auth_views.login, {'template_name': 'login.html', }),
url(r'^login/$', auth_views.login, {'template_name': 'login.html', }),
url(r'^', include('django.contrib.auth.urls')),
]