Revision 5c66ef04
Added by Jérôme Schneider almost 12 years ago
calebasse/urls.py | ||
---|---|---|
5 | 5 |
|
6 | 6 |
from urls_utils import decorated_includes |
7 | 7 |
|
8 |
from calebasse.api import EventResource |
|
8 |
from calebasse.api import EventResource, OccurrenceResource
|
|
9 | 9 |
|
10 | 10 |
admin.autodiscover() |
11 | 11 |
|
12 | 12 |
event_resource = EventResource() |
13 |
occurrence_resource = OccurrenceResource() |
|
13 | 14 |
|
14 | 15 |
service_patterns = patterns('', |
15 | 16 |
url(r'^$', 'calebasse.views.homepage', name='homepage'), |
... | ... | |
31 | 32 |
(r'^$', redirect_to, { 'url': '/cmpp/' }), |
32 | 33 |
url(r'^admin/', include(admin.site.urls)), |
33 | 34 |
url(r'^accounts/', include('django.contrib.auth.urls')), |
34 |
url(r'^api/', decorated_includes(login_required, include(event_resource.urls))), |
|
35 |
url(r'^api/', |
|
36 |
decorated_includes(login_required, include(event_resource.urls))), |
|
37 |
url(r'^api/', |
|
38 |
decorated_includes(login_required, include(occurrence_resource.urls)), |
|
39 |
), |
|
35 | 40 |
url(r'^(?P<service>[a-z-]+)/', decorated_includes(login_required, |
36 | 41 |
include(service_patterns))), |
37 | 42 |
url(r'^lookups/', include('ajax_select.urls')), |
Also available in: Unified diff
agenda: add occurrences deletion