urls.py 739 B

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