urls.py 792 B

1234567891011121314151617181920212223
  1. from django.conf.urls.defaults import (patterns, url, include,
  2. handler500, handler404)
  3. from celery.views import apply
  4. # Uncomment the next two lines to enable the admin:
  5. # from django.contrib import admin
  6. # admin.autodiscover()
  7. urlpatterns = patterns('',
  8. # Example:
  9. # (r'^testproj/', include('testproj.foo.urls')),
  10. # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
  11. # to INSTALLED_APPS to enable admin documentation:
  12. # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  13. # Uncomment the next line to enable the admin:
  14. # (r'^admin/(.*)', admin.site.root),
  15. url(r"^apply/(?P<task_name>.+?)/(?P<args>.+)", apply,
  16. name="celery-apply"),
  17. url(r"^celery/", include("celery.urls")),
  18. )