Gitlab CSE Unil

urls.py 1.28 KB
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
5
6
7
# coding=utf-8
from __future__ import unicode_literals

from django.conf.urls import url, patterns, include

urlpatterns = patterns('adim_app.views',
    url(r'^$', 'home', name="home"),
8
9
10
    # url(r'^i/(?P<anobj_uuid>[0-9a-f]{32})/$', 'send_anobj_img', name='ao_image'),
    # url(r'^t/(?P<anobj_uuid>[0-9a-f]{32})/$', 'send_anobj_thumb', name="ao_thumb"),
#    url(r'^u/$', 'upload_thumb', name="upload-thumb"),
Julien Furrer's avatar
Julien Furrer committed
11
    url(r'^new/$', 'upload_file', name='upload_file'),
12
13
14
15

    url(r'^annotate/',
        include(patterns('adim_app.views',
            url(r'^$', 'annotate_new', name="annotate-new"),
16
            url(r'^(?P<anobj_uuid>[0-9a-f]{6,32})/',
17
18
19
20
21
22
23
24
25
26
27
                include(patterns('adim_app.views',
                    url(r'^$', 'annotate', name="annotate"),
                    url(r'^image/$', 'send_anobj_img', name='ao_image'),
                    url(r'^thumb/$', 'anobj_thumb', name="ao_thumb"),
                    url(r'^u/$', 'upload_anobj_thumb'),
                ))
                ),
        )),
        name="annotate_base"
        ),

28
29
30
    url(r'^s/u/$', 'suggest_users', name='suggest-users'),
)

31
32
33
34
35
# urlpatterns += patterns('adim_app.playground',
#     url(r'^bh/$', 'bloodhound'),
#     url(r'^bh/users/$', 'bloodhound_users'),
#     # url(r'^bh/ldap_users/$', 'bloodhound_ldapusers'),
# )