urls.py 766 B

12345678910111213141516171819202122
  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'^tests/', include('tests.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>.+?)/", apply, name="celery-apply"),
  16. url(r"^celery/", include("celery.urls")),
  17. )