new file: news/__init__.py
[univ_ap.git] / news / urls.py
1 #-*- coding: utf-8 -*-
2 from django.conf.urls import patterns, include, url
3 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
4
5 # Uncomment the next two lines to enable the a#dmin:
6 from django.contrib import admin
7 admin.autodiscover()
8 from news import views
9
10 urlpatterns = patterns('news.views',
11 # Examples:
12 # url(r'^$', 'projetCuf.views.home', name='home'),
13 # url(r'^projetCuf/', include('projetCuf.foo.urls')),
14
15 # Uncomment the admin/doc line below to enable admin documentation:
16 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
17
18 # Uncomment the next line to enable the admin:
19 # url(r'^uni_form/', include('uni_form.urls')),
20 url(r'api/$', views.api_news_list.as_view()),
21 url(r'api_category_dossier/$', views.api_cate_dossier_list.as_view()),
22 url(r'calendar/$', 'calendar'),
23 url(r'(?P<slug>.*)/$', 'view_news'),
24 url(r'$', 'news'),
25
26 )
27 #urlpatterns += staticfiles_urlpatterns()
28