chenhongyan1989 3bfe83c254 修改分析排队异常bug hace 3 meses
..
admin 0ca0fe62f7 first commit hace 5 meses
apps 3bfe83c254 修改分析排队异常bug hace 3 meses
config 0ca0fe62f7 first commit hace 5 meses
drf-yasg 0ca0fe62f7 first commit hace 5 meses
rest_framework 0ca0fe62f7 first commit hace 5 meses
static_root 0ca0fe62f7 first commit hace 5 meses
wtoaamapi 0ca0fe62f7 first commit hace 5 meses
README.MD 0ca0fe62f7 first commit hace 5 meses
__init__.py 5583e22273 修改 hace 5 meses
daemon-wtoaamapi.service 0ca0fe62f7 first commit hace 5 meses
db.sqlite3 0ca0fe62f7 first commit hace 5 meses
gunicorn_config.py 0ca0fe62f7 first commit hace 5 meses
manage.py 0ca0fe62f7 first commit hace 5 meses
middleware.py 0ca0fe62f7 first commit hace 5 meses
uswgi.ini 0ca0fe62f7 first commit hace 5 meses

README.MD

Django

创建

1.安装Django Http API框架,命令:pip install --upgrade Django
2.创建Django项目,命令:django-admin startproject [ProjectName]  例如[ProjectName]为demo_django
3.创建Djangog网站应用,命令:python .\manage.py startapp [AppName]    例如[AppName]为apps

Django后台

http://127.0.0.1:8000/admin/ 后台账号创建步骤(命令)如下:
1. python manage.py makemigrations
2. python manage.py migrate
3. python manage.py createsuperuser  其中createsuperuser为超级用户,例如账号密码设置为admin/admin

Swagger配置

Swagger2安装&配置
安装Swagger框架,命令:pip install drf-yasg2

运行

运行Django网站,命令:python manage.py runserver