getting file size for all dict files to be downloaded. coming to be 400mb or so.
[worddb.git] / words / urls.py
blob91d571e612a6579428ac6421f97620eeeb4d5cc7
1 from django.conf.urls.defaults import *
3 urlpatterns = patterns('',
4 # ajax views # {{{
6 r'^w/ajax/word/(?:add|remove)-(?:synonym|thesaurus|antonym|translation|rhyme|related)/$',
7 'worddb.utils.ajax_form_handler',
8 { 'form_cls': 'worddb.words.forms.AlterM2MRelationForm' }
9 ),
11 r'^w/ajax/word/change-language/$', 'worddb.utils.ajax_form_handler',
12 { 'form_cls': 'worddb.words.forms.ChangeLanguageForm' }
15 r'^w/ajax/word/update-etymology/$', 'worddb.utils.ajax_form_handler',
16 { 'form_cls': 'worddb.words.forms.UpdateEtymologyForm' }
19 r'^w/ajax/word/add-pronunciation/$', 'worddb.utils.ajax_form_handler',
20 { 'form_cls': 'worddb.words.forms.AddPronunciation' }
23 r'^w/ajax/word/remove-pronunciation/$',
24 'worddb.utils.ajax_form_handler',
25 { 'form_cls': 'worddb.words.forms.RemovePronunciation' }
28 r'^w/ajax/word/edit-pronunciation/$', 'worddb.utils.ajax_form_handler',
29 { 'form_cls': 'worddb.words.forms.EditPronunciation' }
32 r'^w/ajax/word/add-meaning/$', 'worddb.utils.ajax_form_handler',
33 { 'form_cls': 'worddb.words.forms.AddMeaning' }
36 r'^w/ajax/word/remove-meaning/$', 'worddb.utils.ajax_form_handler',
37 { 'form_cls': 'worddb.words.forms.RemoveMeaning' }
40 r'^w/ajax/word/update-meaning/$',
41 'worddb.utils.ajax_form_handler',
42 { 'form_cls': 'worddb.words.forms.UpdateMeaning' }
45 r'^w/ajax/word/add-form/$', 'worddb.utils.ajax_form_handler',
46 { 'form_cls': 'worddb.words.forms.AddWordForm' }
49 r'^w/ajax/word/remove-form/$', 'worddb.utils.ajax_form_handler',
50 { 'form_cls': 'worddb.words.forms.RemoveWordForm' }
53 r'^w/ajax/word/add/$', 'worddb.utils.ajax_form_handler',
54 { 'form_cls': 'worddb.words.forms.AddWord' }
56 # }}}
57 # this should match everything, and thus should come at last.
58 (r'^(?P<wordname>[^/]+)/$', 'worddb.words.views.view'),
59 (r'^w/ajax/search/$', 'worddb.words.views.search_ajax'),
60 (r'^w/ajax/get-translations/$', 'worddb.words.views.get_translations_ajax'),
61 (r'^w/ajax/get-languages/$', 'worddb.words.views.get_languages_ajax'),