urls.py 763 B

12345678910111213141516171819202122232425
  1. from django.conf.urls import url
  2. from world.views import plaintext, json, db, dbs, fortunes, update
  3. # Uncomment the next two lines to enable the admin:
  4. # from django.contrib import admin
  5. # admin.autodiscover()
  6. urlpatterns = [
  7. # Examples:
  8. # url(r'^$', 'hello.views.home', name='home'),
  9. # url(r'^hello/', include('hello.foo.urls')),
  10. # Uncomment the admin/doc line below to enable admin documentation:
  11. # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
  12. # Uncomment the next line to enable the admin:
  13. # url(r'^admin/', include(admin.site.urls)),
  14. url(r'^plaintext$', plaintext),
  15. url(r'^json$', json),
  16. url(r'^db$', db),
  17. url(r'^dbs$', dbs),
  18. url(r'^fortunes$', fortunes),
  19. url(r'^update$', update),
  20. ]