Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 0.6
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (28 sloc) 1.317 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 HelpPage, PageIndex, PageDetails, PageSource
urlpatterns = patterns('',
url(r'^$', PageDetails.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'^documents-help/$', HelpPage.as_view(), name='documents-help'),
url(r'^sitemap/$', PageIndex.as_view(), name='documents-index'),
url(r'^(?P<slug>[-\w]+)/$', PageDetails.as_view(), name='documents-page-details'),
url(r'^(?P<slug>[-\w]+)/source/$', PageSource.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.