petit bug
[auf_framonde.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2 from django.conf.urls.defaults import *
3 from django.conf import settings
4 from django.contrib import admin
5 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
6 from cms.sitemaps import CMSSitemap
7 from filebrowser.sites import site
8
9 admin.autodiscover()
10
11 handler404
12 handler500 # Pyflakes
13
14 urlpatterns = patterns('',
15 url(r'^tinymce/', include('tinymce.urls')),
16 (r'^admin/filebrowser/', include(site.urls)),
17 (r'^admin/', include(admin.site.urls)),
18 (r'^', include('project.framonde.urls')),
19 url(r'^admin_tools/', include('admin_tools.urls')),
20 )
21
22 # Search
23 urlpatterns += patterns('views',
24 (r'^recherche/$', 'search'),
25 )
26
27 # django-cms
28 urlpatterns += patterns('',
29 url(r'^', include('cms.urls')),
30 )
31
32
33 if settings.DEBUG:
34 urlpatterns += patterns('',
35 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
36 {'document_root': settings.MEDIA_ROOT}),
37 )
38