mirror of https://github.com/jumpserver/jumpserver
添加 utils和api样例文件
parent
964247b1f2
commit
e1d5cbd06e
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -0,0 +1,3 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -0,0 +1,3 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -0,0 +1,3 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -0,0 +1,3 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -0,0 +1,3 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# ~*~ coding: utf-8 ~*~
|
||||
#
|
|
@ -1,7 +1,5 @@
|
|||
## 项目骨架
|
||||
|
||||
## 项目骨架
|
||||
|
||||
说明如下:
|
||||
|
||||
```
|
||||
|
@ -12,31 +10,33 @@
|
|||
├── LICENSE
|
||||
├── README.md
|
||||
├── install // 安装说明
|
||||
├── logs // 日志目录
|
||||
├── dashboard // 管理后台目录,也是各app所在目录
|
||||
│ └── assets // app目录
|
||||
│ └── assets // app目录
|
||||
│ │ ├── admin.py
|
||||
│ │ ├── apps.py // 新版本django app设置文件
|
||||
│ │ ├── api.py // api文件
|
||||
│ │ ├── apps.py // 新版本django app设置文件
|
||||
│ │ ├── api.py // api文件
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── migrations // models Migrations版本控制目录
|
||||
│ │ ├── migrations // models Migrations版本控制目录
|
||||
│ │ └── __init__.py
|
||||
│ │ ├── models.py // 数据模型目录
|
||||
│ │ ├── static // app下静态资源目录
|
||||
│ │ │ └── assets // 多一层目录,防止资源重名
|
||||
│ │ ├── models.py // 数据模型目录
|
||||
│ │ ├── static // app下静态资源目录,如果需要
|
||||
│ │ │ └── assets // 多一层目录,防止资源重名
|
||||
│ │ │ └── some_image.png
|
||||
│ │ ├── templates // app下模板目录
|
||||
│ │ └── assets // 多一层目录,防止资源重名
|
||||
│ │ ├── templates // app下模板目录
|
||||
│ │ └── assets // 多一层目录,防止资源重名
|
||||
│ │ └── asset_list.html
|
||||
│ │ ├── templatetags // 模板标签目录
|
||||
│ │ ├── tests.py // 测试用例文件
|
||||
│ │ ├── urls.py // urlconf文件
|
||||
│ │ └── views.py // views文件
|
||||
│ ├── jumpserver // 项目设置目录
|
||||
│ │ ├── templatetags // 模板标签目录
|
||||
│ │ ├── tests.py // 测试用例文件
|
||||
│ │ ├── urls.py // urlconf文件
|
||||
│ │ ├── utils.py // 将views和api可复用的代码放在这里, api和views只是请求和返回不同
|
||||
│ │ └── views.py // views文件
|
||||
│ ├── jumpserver // 项目设置目录
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── settings.py // 项目设置文件
|
||||
│ │ ├── urls.py // 项目入口urlconf
|
||||
│ │ ├── settings.py // 项目设置文件
|
||||
│ │ ├── urls.py // 项目入口urlconf
|
||||
│ │ └── wsgi.py
|
||||
│ ├── manage.py
|
||||
│ ├── static // 项目静态资源目录
|
||||
│ └── templates // 项目模板目录
|
||||
│ ├── static // 项目静态资源目录
|
||||
│ └── templates // 项目模板目录
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue