source: telemeta/urls.py @ b503f0b

cremcrem2crem3devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecacheformagenericinstru_searchlamlam2mapsv3mergenlivemultiproductionrelease/1.4.4sabiodsearchsecurityserversocialstoragetelecastertestvideo
Last change on this file since b503f0b was f04d8d5, checked in by olivier <>, 8 years ago

adding initial django application

  • Property mode set to 100644
File size: 682 bytes
Line 
1from django.conf.urls.defaults import *
2from telemeta.models import MediaItem
3
4list_dict = {
5    'queryset': MediaItem.objects.all(),
6}
7
8urlpatterns = patterns('',
9    (r'^$', 'telemeta.views.web.index'),
10    (r'^media_item/$', 'django.views.generic.list_detail.object_list', 
11        dict(list_dict, paginate_by=10, template_name="mediaitem_list.html")),
12    (r'^media_item/(?P<media_item_id>[0-9]+)/$', 'telemeta.views.web.media_item_edit'),
13    (r'^media_item/(?P<media_item_id>[0-9]+)/update/$', 'telemeta.views.web.media_item_update'),
14
15    # CSS (FIXME: for developement only)
16    (r'^css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './telemeta/css'}),
17)
18
19
Note: See TracBrowser for help on using the repository browser.