Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (18 sloc) 0.639 kb
f7a1b5c Initial commit
Ask Solem authored
1 """
2
3 URLs defined for celery.
4
6219541 Bumped version to 1.2.0
Ask Solem authored
5 * ``/$task_id/done/``
6
7 URL to :func:`~celery.views.is_successful`.
8
9 * ``/$task_id/status/``
10
11 URL to :func:`~celery.views.task_status`.
12
f7a1b5c Initial commit
Ask Solem authored
13 """
dff9488 @ask All modules must import absolute_import from __future__
authored
14 from __future__ import absolute_import
15
f7a1b5c Initial commit
Ask Solem authored
16 from django.conf.urls.defaults import patterns, url
17
20ef2bc @ask Use new-style imports
authored
18 from . import views
f7a1b5c Initial commit
Ask Solem authored
19
c0785ee @jasonbaker Adding . to task_id regex
jasonbaker authored
20 task_pattern = r'(?P<task_id>[\w\d\-\.]+)'
f7a1b5c Initial commit
Ask Solem authored
21
22 urlpatterns = patterns("",
c0785ee @jasonbaker Adding . to task_id regex
jasonbaker authored
23 url(r'^%s/done/?$' % task_pattern, views.is_task_successful,
f7a1b5c Initial commit
Ask Solem authored
24 name="celery-is_task_successful"),
c0785ee @jasonbaker Adding . to task_id regex
jasonbaker authored
25 url(r'^%s/status/?$' % task_pattern, views.task_status,
f7a1b5c Initial commit
Ask Solem authored
26 name="celery-task_status"),
3660594 Renamed celery_tasks -> registered_tasks
Ask Solem authored
27 url(r'^tasks/?$', views.registered_tasks, name='celery-tasks'),
f7a1b5c Initial commit
Ask Solem authored
28 )
Something went wrong with that request. Please try again.