Skip to content

基于 Django 3.x 的 RESTfulAPI 风格的项目模板,用于快速构建企业级高性能的服务端。

License

Notifications You must be signed in to change notification settings

codelife/django-RESTfulAPI

 
 

Repository files navigation

django-RESTfulAPI

基于 django 3.X 的 RESTfulAPI 风格的项目模板,用于快速构建高性能的服务端。

技术栈

  • 框架选择:基于 django 3.X + django-rest-framework
  • 数据模型:基于 MySQLClient 存储,测试也可使用内置 sqlite3
  • 授权验证:基于 JWT
  • 内置功能:代码生成、文件处理、用户系统、异常处理、异步处理、全文检索、动态权限、接口返回格式化、日志格式化、分页、模糊查询、过滤、排序、缓存、导出、微信&支付宝支付等

快速入门

如需进一步了解,参见 django 文档

本地开发

$ pip install -r requirements.txt
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py loaddata apps/user/user.json
$ python manage.py ruserver
$ open http:https://localhost:8000/

线上部署

bash server.sh start  # 获取帮助:bash sever.sh help 默认启动端口为 8001

About

基于 Django 3.x 的 RESTfulAPI 风格的项目模板,用于快速构建企业级高性能的服务端。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.0%
  • Shell 2.8%
  • Dockerfile 0.2%