
Web后端
文章平均质量分 79
FeatureOverload
github.com/RDpWTeHM
展开
-
【Python】One-Liner 一行Python代码解决实际问题
这篇博客不定期更新,一些可以通过一行代码解决实际问题的案例。Overviewdate 转 datetimeReferencedate 转 datetime注:>>> from datetime import date>>> from datetime import datetime普通的写法:>>> date_ = date.today() # line (1)>>> date_datetime.date原创 2020-11-26 18:52:57 · 429 阅读 · 0 评论 -
【DRF】Django REST Framework - Tutorial 4: 认证 和&权限
发布日期 2019/May/10最后更新日期:翻译 2019-05-10 15:58:38 · 282 阅读 · 0 评论 -
【SQL】【ORM】掌握多对多关系数据库模型
Overview一对多关系Reference - n/a一对多关系Reference - n/a原创 2019-05-26 16:19:20 · 1693 阅读 · 0 评论 -
What does “connection reset by peer” mean?
OverviewWhat does “connection reset by peer” mean?Answersstackoverflow翻译 2019-06-26 14:15:47 · 515 阅读 · 0 评论 -
Web 后台不完全开发代码笔记
Overview1. HTTP 重定向1.1 在 mini_httpd.c1.2 在 Django 中1.3 在 Flask 中1. HTTP 重定向1.1 在 mini_httpd.c源码示例:/* The filename is a directory. Is it missing the trailing slash? */if (file[file_len - 1] != ...原创 2019-07-05 09:42:29 · 161 阅读 · 0 评论 -
【C】【socket】网络套接字编程不完全笔记
Overview前言1. socket 服务端编程2. I/O 复用3. 操作系统层(协议栈)handle 的通信细节Reference前言最近有个重要的性能问题要解决,在“非常非常”低配的嵌入式 LINUX 设备上,动不动就会给你出现平时很难出现的性能问题涉及到“类” DDOS 攻击,需要对 HTTP server 做一些修改,定制。所幸之前看了 《TCP/IP 网络编程》((...原创 2019-06-30 17:55:51 · 299 阅读 · 0 评论 -
【DRF】基于 rest_auth token 认证用户作为 model 的 owner
Overview前言1. 更新 model1.1 添加外键1.2 重写 `.save` 函数2. 更新 serializer3. 更新 view -- LIST, DETAILReference前言本文基于:【DRF】使用 rest_auth 设置 DRF 的 API(数据库/model) 访问权限原创 2019-08-06 11:07:11 · 633 阅读 · 0 评论 -
【OpenWrt】(Luci)OpenWrt Web GUI 开发之 Luci 框架粗解
本博文全部内容都可以在 ???? GitHub ???? 上找到。本博文是 GitHub 上的 README 内容,故本文内部分链接是以 GitHub 上相对路径放置的,有需要请在 GitHub 中下载/查看。因为个人的水平和精力是有限的,如果本目录下的内容存在错误,疏忽之处,欢迎指出:可创建 Issue 或者 fork 修改后向本仓库做 pull requestOverview理解 Luci 架构...原创 2019-09-20 12:42:43 · 19546 阅读 · 7 评论 -
【HTTP】认证相关 - 本文为草稿,完成度 0%,勿开
Overview1 No Auth - n/a2 Bearer Token - n/a3 Basic Auth3.1 HTTPie(Command) example3.2 Requests(Python) exampleDigest Auth - n/aOAuth - pending...ReferenceNo AuthBearer TokenBasic AuthDigest Aut...原创 2019-05-15 10:20:44 · 252 阅读 · 0 评论 -
【译】【django】【models】模型关系:一对一,多对一,多对多
Overview1 关联关系1.1 多对一关系 - n/a1.2 多对多关系1.2.1 `ManyToManyField`1.2.2 Extra fields on many-to-many relationships1.3 一对一关系 - n/aReference - n/a1 关联关系1.1 多对一关系 - n/a1.2 多对多关系1.2.1 ManyToManyField...翻译 2019-05-19 16:26:50 · 893 阅读 · 0 评论 -
【ORM】【SQLAlchemy】Tutorials
Overview1 Official1.1 *Introduction to SQLAlchemy* - presented at many Pycon and other conferences1.2 *Python SQLAlchemy Tutorial* - on the Python Central website1.3 *SQLAlchemy Tutorial* - on the Zet...原创 2019-05-05 15:49:03 · 904 阅读 · 0 评论 -
Django实现任意文件上传(最简单的方法)
Django实现任意文件上传(最简单的方法)原文链接转载 2018-12-09 18:08:12 · 1003 阅读 · 0 评论 -
【django】【专题】(部署)部署 django 项目
部署 django 项目Overview部署 django 项目剥离项目源码 - N/A安装 django 项目 - n/a先使用 `python manage.py runserver` 测试 - n/a独角兽 unicorn - n/a配置 nginx - n/adjango 项目的静态文件收集静态文件检查一下 nginx 的 django 项目的静态文件配置 - 待补充systemd - ...原创 2019-01-15 14:22:52 · 360 阅读 · 0 评论 -
【django】How to Use Django's Built-in Login System
How to Use Django’s Built-in Login System转载 2019-01-28 10:07:49 · 438 阅读 · 0 评论 -
【django】Django Tutorial Part 8: User authentication and permissions
Django Tutorial Part 8: User authentication and permissions转载 2019-01-28 10:34:55 · 865 阅读 · 0 评论