wei_lai 70185475fc HttpResponse缩进 пре 2 месеци
..
admin 0ca0fe62f7 first commit пре 5 месеци
apps 70185475fc HttpResponse缩进 пре 2 месеци
config 0ca0fe62f7 first commit пре 5 месеци
drf-yasg 0ca0fe62f7 first commit пре 5 месеци
rest_framework 0ca0fe62f7 first commit пре 5 месеци
static_root 0ca0fe62f7 first commit пре 5 месеци
wtoaamapi 0ca0fe62f7 first commit пре 5 месеци
README.MD 0ca0fe62f7 first commit пре 5 месеци
__init__.py 5583e22273 修改 пре 5 месеци
daemon-wtoaamapi.service 0ca0fe62f7 first commit пре 5 месеци
db.sqlite3 0ca0fe62f7 first commit пре 5 месеци
gunicorn_config.py 0ca0fe62f7 first commit пре 5 месеци
manage.py 0ca0fe62f7 first commit пре 5 месеци
middleware.py 0ca0fe62f7 first commit пре 5 месеци
uswgi.ini 0ca0fe62f7 first commit пре 5 месеци

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