urls.py
929 Bytes
# -*- coding: utf-8 -*-
from django.conf import settings
from django.conf.urls import patterns, include
from common.util import url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
'',
(r'^accounts/', include('accounts.urls')),
(r'^accounts/', include('registration.backends.default.urls')),
(r'^accounts/', include('django.contrib.auth.urls')),
(r'^', include('dictionary.urls')),
(r'^wzory/', include('patterns.urls')),
(r'^', include('management.urls')),
(r'^paginer/', include('paginer.urls')),
(r'^historia/', include('history.urls')),
(r'^', include('export.urls')),
url(r'^%s(?P<path>.*)$' % settings.MEDIA_URL.lstrip('/'),
'django.views.static.serve',
kwargs={'document_root': settings.MEDIA_ROOT}),
(r'^admin/', include(admin.site.urls)), # potrzebne do zmiany hasła
)