摘要:
1. Model __str__() A Python “magic method” that returns a string representation of any object. This is what Python and Django will use whenever a mode 阅读全文
摘要:
Python的WEB框架有Django、Tornado、Flask 等多种,Django相较与其他WEB框架其优势为:大而全,框架本身集成了ORM、模型绑定、模板引擎、缓存、Session等诸多功能。 一、基本配置 1.1、创建django程序 终端命令:django-admin startproj 阅读全文