12345678910111213141516171819202122232425262728293031323334353637383940 |
- #coding=utf-8
- """cloud_defense URL Configuration
- The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/1.11/topics/http/urls/
- Examples:
- Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
- Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
- Including another URLconf
- 1. Import the include() function: from django.conf.urls import url, include
- 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
- """
- import os
- from django.conf import settings
- from django.conf.urls import url, include
- from django import views
- import wzbapi.views as wview
- urlpatterns = [
- url(r'^api/canvas', wview.CanvasView.as_view()),
- url(r'^api/doc/', wview.DocView.as_view()),
- url(r'^api/account/', include('account.urls_backstage')),
- url(r'^api/wx/', include('weixin.urls_backstage')),
- url(r'^api/admin/', include('manage.urls_backstage'))
- ]
- urlpatterns += [
- #url(r'^static/(?P<path>.*)$', views.static.serve, { 'document_root': settings.STATIC_ROOT})
- ]
|