![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Django
小H-人从众
这个作者很懒,什么都没留下…
展开
-
Django使用之模板语言
django中的模板语言 1.html页面存放templates(模板)之中 html中使用模板语言加入从数据库中取出的数据 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>my</title> </head> <body> <h1>{{ user }}</h1&原创 2020-05-11 22:10:54 · 208 阅读 · 0 评论 -
Django的基础
dajongo 1.wsgi web服务网络接口;python3中接收的是byte列表:return [bytes(result, encoding=‘utf-8’)] def RunServer(environ, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) userUrl = enviro...原创 2020-05-07 09:38:04 · 227 阅读 · 0 评论 -
Django中执行原始的sql语句
Django中执行sql语句,取出相关的官方文档描述 If you’re not familiar with the Python DB-API, note that the SQL statement in cursor.execute() uses placeholders, “%s”, rather than adding parameters directly within the SQL. If you use this technique, the underlying database lib原创 2020-05-10 12:44:20 · 140 阅读 · 0 评论