-
Notifications
You must be signed in to change notification settings - Fork 80
/
urls.py
28 lines (22 loc) · 935 Bytes
/
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
from django.conf.urls.defaults import patterns, include, url
from cloud_ide.shared.urls import urlpatterns as shared_urls
from home import views
urlpatterns = shared_urls + patterns('cloud_ide.fiddle.views',
url(r'^save/$', 'save', name='save_snippet'),
url(r'^check_title/', 'check_title'),
url(r'^tag_hint/$', 'tag_hint'),
url(r'^(?P<language>[\w]+)/$', 'create', name='create_snippet'),
)
urlpatterns += patterns('',
url(r'^utility/', include('fiddlesalad.utility.urls')),
)
urlpatterns += patterns('',
url(r'^python/', include('fiddlesalad.python.urls')),
)
urlpatterns += patterns('',
(r'^$', views.index),
(r'^coffeekup/documentation/$', 'django.views.generic.simple.direct_to_template', {'template': 'documentation/coffeekup.html'}),
)
urlpatterns += patterns('cloud_ide.fiddle.views',
url(r'^(?P<language>[\w]+)/(?P<snippet_slug>[\w]+-[\w]+-[-\w]+)/$', 'open', name='open_snippet')
)