Fix bug css
[ifgu.git] / project / urls.py
CommitLineData
7751bc47 1# -*- encoding: utf-8 -*
926ef9f0 2from django.conf.urls.defaults import *
7751bc47
OL
3from django.conf import settings
4from django.contrib import admin
5from django.contrib.staticfiles.urls import staticfiles_urlpatterns
926ef9f0 6from django.contrib.syndication.views import Feed
7from feeds import *
8from cms.sitemaps import CMSSitemap
7751bc47
OL
9
10admin.autodiscover()
11
12handler404
13handler500 # Pyflakes
14
15urlpatterns = patterns(
16 '',
17 # admin
18 url(r'^admin_tools/', include('admin_tools.urls')),
19 (r'^admin/', include(admin.site.urls)),
20)
21
926ef9f0 22#rss Marc
23
24flux = {
25 'actualite': DerniereActualites,
26}
27
28urlpatterns += patterns('',
29(r'^flux/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
30 {'feed_dict': flux}),)
31
32#article
33urlpatterns += patterns('article.views',
34 (r'^actualites/$', 'actualite'),
35 (r'^actualites/(?P<slug>[-\w]+)/$', 'actualite_detail'),
36 (r'^plan-du-site/$', 'plan_du_site'),
37)
38
7751bc47
OL
39if settings.DEBUG:
40 urlpatterns += staticfiles_urlpatterns()
41 urlpatterns += patterns('',
42 url(r'^media/(?P<path>.*)$',
43 'django.views.static.serve', {
44 'document_root': settings.MEDIA_ROOT, }),
45 )
f73b7c99
OL
46
47# django-cms
48urlpatterns += patterns('',
49 url(r'^', include('cms.urls')),
926ef9f0 50 url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': CMSSitemap}}),
47a0383d 51)