Supprimé ce qui ne va pas dans le dépôt git
[auf_framonde.git] / project / urls.py
CommitLineData
01b54c21
MN
1# -*- encoding: utf-8 -*
2from django.conf.urls.defaults import *
3from django.conf import settings
4from django.contrib import admin
5from django.contrib.staticfiles.urls import staticfiles_urlpatterns
6from cms.sitemaps import CMSSitemap
7from filebrowser.sites import site
8
9admin.autodiscover()
10
11handler404
12handler500 # Pyflakes
13
14urlpatterns = 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
23urlpatterns += patterns('views',
24 (r'^recherche/$', 'search'),
25)
26
27# django-cms
28urlpatterns += patterns('',
29 url(r'^', include('cms.urls')),
30)
31
32
33if settings.DEBUG:
34 urlpatterns += patterns('',
35 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
36 {'document_root': settings.MEDIA_ROOT}),
37 )
38