Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: django-1-4
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (29 sloc) 1.412 kb
# -*- coding: utf-8 -*-
"""
Url's map "racine"
"""
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
import autobreadcrumbs
autobreadcrumbs.autodiscover()
from sveedocuments.views.page import HelpPageView, PageIndexView, PageDetailsView, PageSourceView
urlpatterns = patterns('',
url(r'^$', PageDetailsView.as_view(), {'slug':"accueil"}, name='documents-homepage'),
(r'^admin/', include(admin.site.urls)),
(r'^accounts/', include('sveeaccounts.urls')),
(r'^board/', include('sveedocuments.urls_board')),
url(r'^captcha/', include('captcha.urls')),
(r'^djangocodemirror-sample/', include('djangocodemirror.urls')),
url(r'^tribune/', include('djangotribune.urls')),
url(r'^documents-help/$', HelpPageView.as_view(), name='documents-help'),
url(r'^sitemap/$', PageIndexView.as_view(), name='documents-index'),
url(r'^(?P<slug>[-\w]+)/$', PageDetailsView.as_view(), name='documents-page-details'),
url(r'^(?P<slug>[-\w]+)/source/$', PageSourceView.as_view(), name='documents-page-source'),
)
# En production (avec le debug_mode à False) ceci ne sera pas chargé
if settings.DEBUG:
urlpatterns += patterns('',
(r'^medias/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
)
Jump to Line
Something went wrong with that request. Please try again.