urls.py 609 Bytes
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
from django.conf import settings
2
3
4
5
6
7
8
9
10
11
12
from django.conf.urls import url

import views

urlpatterns = [
    url(
        r'^dossier/(?P<pk>\d+)/$',
        views.DossierDetail.as_view(),
        name='dossier-detail'
    ),
    url(
Jamesie Pic's avatar
Jamesie Pic committed
13
        r'^dossier/$',
14
15
16
17
        views.DossierList.as_view(),
        name='dossier-list'
    ),
]
Jamesie Pic's avatar
Jamesie Pic committed
18
19
20
21
22
23

if 'dal_select2' in settings.INSTALLED_APPS:
    from autocompletes import ProposalAutocomplete  # noqa

    urlpatterns.append(
        url(
Jamesie Pic's avatar
Jamesie Pic committed
24
            '^autocomplete/proposal/$',
Jamesie Pic's avatar
Jamesie Pic committed
25
26
27
28
            ProposalAutocomplete.as_view(),
            name='proposal-autocomplete',
        ),
    )