Commit e1d5cbd0 authored by ibuler's avatar ibuler

添加 utils和api样例文件

parent 964247b1
from django.contrib import admin
# Register your models here.
# ~*~ coding: utf-8 ~*~
#
# ~*~ coding: utf-8 ~*~
#
from django.contrib import admin
# Register your models here.
# ~*~ coding: utf-8 ~*~
#
# ~*~ coding: utf-8 ~*~
#
from django.contrib import admin
# Register your models here.
# ~*~ coding: utf-8 ~*~
#
# ~*~ coding: utf-8 ~*~
#
from django.contrib import admin
# Register your models here.
# ~*~ coding: utf-8 ~*~
#
# ~*~ coding: utf-8 ~*~
#
from django.contrib import admin
# Register your models here.
# ~*~ coding: utf-8 ~*~
#
# ~*~ coding: utf-8 ~*~
#
## 项目骨架 ## 项目骨架
## 项目骨架
说明如下: 说明如下:
``` ```
...@@ -12,6 +10,7 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment