添加 utils和api样例文件

pull/530/head
ibuler 2016-08-09 17:27:37 +08:00
parent 964247b1f2
commit e1d5cbd06e
16 changed files with 45 additions and 35 deletions

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

3
dashboard/assets/api.py Normal file
View File

@ -0,0 +1,3 @@
# ~*~ coding: utf-8 ~*~
#

View File

@ -0,0 +1,2 @@
# ~*~ coding: utf-8 ~*~
#

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

3
dashboard/audits/api.py Normal file
View File

@ -0,0 +1,3 @@
# ~*~ coding: utf-8 ~*~
#

View File

@ -0,0 +1,2 @@
# ~*~ coding: utf-8 ~*~
#

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

3
dashboard/ops/api.py Normal file
View File

@ -0,0 +1,3 @@
# ~*~ coding: utf-8 ~*~
#

2
dashboard/ops/utils.py Normal file
View File

@ -0,0 +1,2 @@
# ~*~ coding: utf-8 ~*~
#

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

3
dashboard/perms/api.py Normal file
View File

@ -0,0 +1,3 @@
# ~*~ coding: utf-8 ~*~
#

2
dashboard/perms/utils.py Normal file
View File

@ -0,0 +1,2 @@
# ~*~ coding: utf-8 ~*~
#

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

3
dashboard/users/api.py Normal file
View File

@ -0,0 +1,3 @@
# ~*~ coding: utf-8 ~*~
#

2
dashboard/users/utils.py Normal file
View File

@ -0,0 +1,2 @@
# ~*~ coding: utf-8 ~*~
#

View File

@ -1,7 +1,5 @@
## 项目骨架 ## 项目骨架
## 项目骨架
说明如下: 说明如下:
``` ```
@ -12,6 +10,7 @@
├── LICENSE ├── LICENSE
├── README.md ├── README.md
├── install // 安装说明 ├── install // 安装说明
├── logs // 日志目录
├── dashboard // 管理后台目录也是各app所在目录 ├── dashboard // 管理后台目录也是各app所在目录
│ └── assets // app目录 │ └── assets // app目录
│ │ ├── admin.py │ │ ├── admin.py
@ -21,7 +20,7 @@
│ │ ├── migrations // models Migrations版本控制目录 │ │ ├── migrations // models Migrations版本控制目录
│ │ └── __init__.py │ │ └── __init__.py
│ │ ├── models.py // 数据模型目录 │ │ ├── models.py // 数据模型目录
│ │ ├── static // app下静态资源目录 │ │ ├── static // app下静态资源目录,如果需要
│ │ │ └── assets // 多一层目录,防止资源重名 │ │ │ └── assets // 多一层目录,防止资源重名
│ │ │ └── some_image.png │ │ │ └── some_image.png
│ │ ├── templates // app下模板目录 │ │ ├── templates // app下模板目录
@ -30,6 +29,7 @@
│ │ ├── templatetags // 模板标签目录 │ │ ├── templatetags // 模板标签目录
│ │ ├── tests.py // 测试用例文件 │ │ ├── tests.py // 测试用例文件
│ │ ├── urls.py // urlconf文件 │ │ ├── urls.py // urlconf文件
│ │ ├── utils.py // 将views和api可复用的代码放在这里, api和views只是请求和返回不同
│ │ └── views.py // views文件 │ │ └── views.py // views文件
│ ├── jumpserver // 项目设置目录 │ ├── jumpserver // 项目设置目录
│ │ ├── __init__.py │ │ ├── __init__.py