forked from pavgup/ubertool_cts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
51 lines (47 loc) · 2.39 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
48
49
50
# https://docs.djangoproject.com/en/1.6/intro/tutorial03/
from django.conf.urls import patterns, include, url
# from django.contrib import admin
# admin.autodiscover()
# The previous urlpatterns is using views as a prefix breaking the use of django apps
urlpatterns = patterns('',
# url(r'^/', include('test_cts.urls')), # Pavan added this to include the test suite django app
url(r'^cts/portal/?$', 'REST.portal.directAllTraffic'),
url(r'^test-cts/', include('test_cts.urls')), # Pavan added this to include the test suite django app
url(r'^jchem-cts/', include('REST.urls')),
)
# All view functions here must be in '/views/views.py'
urlpatterns += patterns('views',
# url(r'^docs/', include('docs.urls')),
(r'^$', 'landing.ctsLandingPage'), # Landing page
(r'^cts/?$', 'landing.ctsLandingPage'),
(r'^cts/contact/?$', 'misc.fileNotFound'),
(r'^cts/fifra/?$', 'misc.fileNotFound'),
(r'^cts/flame/?$', 'misc.fileNotFound'),
(r'^cts/ahydrolysis/?$', 'misc.fileNotFound'),
(r'^cts/areduction/?$', 'misc.fileNotFound'),
(r'^cts/mammet/?$', 'misc.fileNotFound'),
(r'^cts/(?P<model>.*?)/description/?$', 'description.descriptionPage'),
(r'^cts/(?P<model>.*?)/input/?$', 'input.inputPage'),
(r'^cts/(?P<model>.*?)/output/?$', 'output.outputPage'),
(r'^cts/(?P<model>.*?)/algorithms/?$', 'algorithms.algorithmPage'),
(r'^cts/(?P<model>.*?)/references/?$', 'references.referencesPage'),
(r'^cts/(?P<model>.*?)/batch/?$', 'misc.fileNotFound'),
(r'^cts/(?P<model>.*?)/batchinput/?$', 'batch.batchInputPage'),
(r'^cts/(?P<model>.*?)/batchoutput/?$', 'batch.batchOutputPage'),
(r'^cts/(?P<model>.*?)/qaqc/?$', 'qaqc.qaqcPage'),
# (r'^cts/(?P<model>.*?)/history/?$', 'history.historyPage'),
(r'^cts/(?P<model>.*?)/history/?$', 'misc.fileNotFound'),
(r'^cts/.*?/history_revisit\.html$', 'history.historyPageRevist'),
(r'^cts/(?P<model>.*?)/pdf/?$', 'generateReport.pdfReceiver'),
(r'^cts/(?P<model>.*?)/html/?$', 'generateReport.htmlReceiver'),
(r'^cts/docs/?$', 'misc.docsRedirect'),
(r'^cts/(?P<model>.*?)/?$', 'description.descriptionPage'),
)
# 404 Error view (file not found)
handler404 = 'views.misc.fileNotFound'
# 500 Error view (server error)
handler500 = 'views.misc.fileNotFound'
# 403 Error view (forbidden)
handler403 = 'views.misc.fileNotFound'
# 408 Error view (request timeout)
handler408 = 'views.misc.requestTimeout'