X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/aac6ba0b5d9a5a245adcfd852f491387f5febc68..183aa1f98a61acb441e082951ff8c24c93cfcc27:/forum_modules/exporter/urls.py diff --git a/forum_modules/exporter/urls.py b/forum_modules/exporter/urls.py index 1ae0cd8..1de3851 100644 --- a/forum_modules/exporter/urls.py +++ b/forum_modules/exporter/urls.py @@ -1,11 +1,10 @@ -from django.conf.urls.defaults import * -from django.views.generic.simple import direct_to_template +from django.conf.urls import patterns, url, include from django.utils.translation import ugettext as _ from views import state, running, download urlpatterns = patterns('', url(r'^%s%s%s$' % (_('admin/'), _('exporter/'), _('state/')), state, name='exporter_state'), - url(r'^%s%s%s$' % (_('admin/'), _('exporter/'), _('running/')), running, name='exporter_running'), + url(r'^%s(?P\w+)/%s$' % (_('admin/'), _('running/')), running, name='exporter_running'), url(r'^%s%s%s$' % (_('admin/'), _('exporter/'), _('download/')), download, name='exporter_download'), -) \ No newline at end of file +)