-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
35 lines (30 loc) · 1.55 KB
/
urls.py
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
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from vortaro.settings import PROJECT_ROOT
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^vortaro/', include('vortaro.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': PROJECT_ROOT+'/media/'}),
(r'^ajax/epo/eng/(?P<word>[^/]*)/$', 'vortaro.legacy.esperanto.ajax'),
(r'^register/$', 'vortaro.words.views.register'),
(r'^login/$', 'vortaro.words.views.logmein'),
(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page':'/about'}),
(r'^about/$', 'vortaro.words.views.about'),
(r'^$', 'vortaro.words.views.about'),
(r'^data/editors/(?P<id>\d+)$', 'vortaro.words.views.editor_profile'),
(r'^settings$', 'vortaro.words.views.settings'),
(r'^data/search$', 'vortaro.words.views.search'),
(r'^data/words/(?P<id>\d+)$', 'vortaro.words.views.word_profile'),
(r'^data/words/(?P<command>\w+)$', 'vortaro.words.views.word_actions'),
#(r'^$', 'vortaro.words.views.dictionary'),
#(r'^(?P<lang>\w*)/$', 'vortaro.words.views.dictionary'),
#(r'^(?P<lang>\w*)/search$', 'vortaro.words.views.search'),
#(r'^(?P<url>.*)$', 'vortaro.words.views.url'),
)