/sample_project/batchimport/urls.py
Python | 35 lines | 16 code | 1 blank | 18 comment | 2 complexity | 1eea165d7f879b2b732ef1421222c2ea MD5 | raw file
1""" 2URLConf for Django batch import and update. 3 4If the default behavior of the batchimport views is acceptable to 5you, simply use a line like this in your root URLConf to set up the 6default URLs for batchimport: 7 8 (r'^batchimport/', include('batchimport.urls')), 9 10But if you'd like to customize the behavior (e.g., by passing extra 11arguments to the various views) or split up the URLs, feel free to set 12up your own URL patterns for these views instead. 13 14""" 15 16 17from django.conf.urls.defaults import * 18 19from batchimport.views import import_start, import_options, import_execute 20 21urlpatterns = patterns('', 22 # Activation keys get matched by \w+ instead of the more specific 23 # [a-fA-F0-9]{40} because a bad activation key should still get to the view; 24 # that way it can return a sensible "invalid key" message instead of a 25 # confusing 404. 26 url(r'^import_start/$', 27 import_start, 28 name='batchimport_import_start'), 29 url(r'^import_options/$', 30 import_options, 31 name='batchimport_import_options'), 32 url(r'^import_execute/$', 33 import_execute, 34 name='batchimport_import_execute'), 35 )