urls.py 856 Bytes
Newer Older
Kálmán Viktor committed
1
from django.conf.urls import patterns, url
2

3
from vm.models import Instance
4
from .views import (
Kálmán Viktor committed
5 6
    IndexView, VmDetailView, VmList, VmCreate, TemplateDetail, AclUpdateView,
    delete_vm)
7

Kálmán Viktor committed
8 9
urlpatterns = patterns(
    '',
Kálmán Viktor committed
10
    url(r'^$', IndexView.as_view(), name="dashboard.index"),
11 12
    url(r'^template/(?P<pk>\d+)/$', TemplateDetail.as_view(),
        name='dashboard.views.template-detail'),
Kálmán Viktor committed
13 14
    url(r'^vm/(?P<pk>\d+)/$', VmDetailView.as_view(),
        name='dashboard.views.detail'),
15 16
    url(r'^vm/(?P<pk>\d+)/acl/$', AclUpdateView.as_view(model=Instance),
        name='dashboard.views.vm-acl'),
Kálmán Viktor committed
17
    url(r'^vm/list/$', VmList.as_view(), name='dashboard.views.vm-list'),
18 19
    url(r'^vm/create/$', VmCreate.as_view(),
        name='dashboard.views.vm-create'),
Kálmán Viktor committed
20 21
    url(r'^vm/delete/(?P<pk>\d+)/$', delete_vm,
        name="dashboard.views.delete-vm"),
Kálmán Viktor committed
22
)