urls.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #coding=utf-8
  2. """cloud_defense URL Configuration
  3. The `urlpatterns` list routes URLs to views. For more information please see:
  4. https://docs.djangoproject.com/en/1.11/topics/http/urls/
  5. Examples:
  6. Function views
  7. 1. Add an import: from my_app import views
  8. 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
  9. Class-based views
  10. 1. Add an import: from other_app.views import Home
  11. 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
  12. Including another URLconf
  13. 1. Import the include() function: from django.conf.urls import url, include
  14. 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
  15. """
  16. import os
  17. from django.conf import settings
  18. from django.conf.urls import url, include
  19. from django import views
  20. import wzbapi.views as wview
  21. urlpatterns = [
  22. url(r'^api/canvas', wview.CanvasView.as_view()),
  23. url(r'^api/doc/', wview.DocView.as_view()),
  24. url(r'^api/account/', include('account.urls_backstage')),
  25. url(r'^api/wx/', include('weixin.urls_backstage')),
  26. url(r'^api/admin/', include('manage.urls_backstage'))
  27. ]
  28. urlpatterns += [
  29. #url(r'^static/(?P<path>.*)$', views.static.serve, { 'document_root': settings.STATIC_ROOT})
  30. ]