-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
47 lines (37 loc) · 2.06 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from django.conf.urls import patterns, include, url
from django.views.generic.simple import direct_to_template
from api import urls
import views
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', views.index, name='g_index'),
url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
url(r'^logout/$', 'django.contrib.auth.views.logout_then_login'),
url(r'^register/$', 'views.register', name='g_register'),
# Deployments
url(r'^deployments/create/$', 'views.create_deployment', name='g_create_deployment'),
url(r'^deployments/(?P<deployment_id>\d+)/abort/$', 'views.abort_deployment', name='g_abort_deployment'),
url(r'^deployments/(?P<deployment_id>\d+)/$', 'views.get_deployment', name='g_get_deployment'),
# Deployment methods
url(r'^deployment_methods/$', 'views.deployment_method_index', name='g_deployment_method_index'),
url(r'^deployment_methods/create/$',
'views.create_deployment_method', name='g_create_deployment_method'),
# Repositories
url(r'^repositories/$', 'views.repository_index', name='g_repository_index'),
url(r'^repositories/create/$', 'views.create_repository', name='g_create_repository'),
# Environments
url(r'^environments/$', 'views.environment_index', name='g_environment_index'),
url(r'^environments/create/$', 'views.create_environment', name='g_create_environment'),
# Environment stages
url(r'^environments/(?P<environment_id>\d+)/stages/create/$',
'views.create_environment_stage', name='g_create_environment_stage'),
url(r'^environments/(?P<environment_id>\d+)/stages/(?P<stage_id>\d+)/$',
'views.get_environment_stage', name='g_get_environment_stage'),
url(r'^api/', include('api.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
#url(r'^admin/', include(admin.site.urls)),
)