urls.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. """
  2. Definition of urls for Niko.
  3. """
  4. from django.conf.urls import include, url
  5. # from django.urls import path
  6. from django.contrib import admin
  7. from checkIn.views import index_pjh
  8. from backend.views import wechat_authorize_domain,wechat_authorize_domain_2
  9. from django.views.generic.base import RedirectView
  10. # from checkIn import views, AJAX, userViews, staticViews, addonViews
  11. # Uncomment the next two lines to enable the admin:
  12. # from django.contrib import admin
  13. # admin.autodiscover()
  14. urlpatterns = [
  15. # Examples:
  16. # url(r'^$', Niko.views.home, name='home'),
  17. # url(r'^Niko/', include('Niko.Niko.urls')),
  18. # Uncomment the admin/doc line below to enable admin documentation:
  19. # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
  20. # Uncomment the next line to enable the admin:
  21. # url(r'^admin/', include(admin.site.urls)),
  22. url(r'^$', index_pjh),
  23. url(r'^prison/', admin.site.urls),
  24. url(r'^checkIn/', include('checkIn.urls')),
  25. url(r'^cq/dati/', include('dati.urls')),
  26. url(r'^cq/library/', include('library.urls')),
  27. url(r'^cq/volunteer/', include('volunteer_arrangement.urls')),
  28. url(r'^backend/', include('backend.urls')),
  29. url('MP_verify_FGlGjjfKq4iz5EZc.txt', wechat_authorize_domain),
  30. url('MP_verify_nWvJfsXLyqPEqBTg.txt', wechat_authorize_domain_2),
  31. url(r'^favicon.ico$', RedirectView.as_view(url='http://www.pujianghui.work:81/favicon.ico'))
  32. ]
  33. urlpatterns += [
  34. url(r'^captcha/', include('captcha.urls')),
  35. ]