urls.py
1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
def flat_page_url(regex, text_id):
return url(regex, 'common.views.flat_page', {'text_id': text_id},
name=text_id)
urlpatterns = patterns(
'',
url(r'^robots.txt$', TemplateView.as_view(
template_name='robots.txt', content_type='text/plain')),
url(r'^$', 'dictionary.views.main_page', name='main_page'),
url(r'^leksemy/$', 'dictionary.views.reader_view', name='reader_view'),
url(r'^WSJP/(.+)/$', 'dictionary.views.wsjp_table', name='wsjp_table'),
url(r'^wzory/$', 'patterns.views.pattern_reader_view',
name='pattern_reader_view'),
flat_page_url(r'^o-slowniku/$', 'about'),
flat_page_url(r'^about/$', 'about_en'),
flat_page_url(r'^pomoc/$', 'help'),
flat_page_url(r'^help/$', 'help_en'),
flat_page_url(r'^systematyzacja-wzorow/$', 'pattern_system'),
flat_page_url(r'^pattern-system/$', 'pattern_system_en'),
flat_page_url(r'^oznaczenia/$', 'symbols'),
flat_page_url(r'^symbols/$', 'symbols_en'),
flat_page_url(r'^instrukcja/$', 'usage'),
flat_page_url(r'^instruction/$', 'usage_en'),
(r'^accounts/', include('accounts.urls')),
(r'^common/', include('common.urls')),
(r'^i18n/', include('django.conf.urls.i18n')),
(r'^edycja/', include('dictionary.urls')),
(r'^edycja/wzory/', include('patterns.urls')),
(r'^', include('management.urls')),
(r'^paginer/', include('paginer.urls')),
(r'^historia/', include('history.urls')),
(r'^eksport/', include('export.urls')),
(r'^tables/', include('tables.urls')),
)