上一页 1 ··· 47 48 49 50 51
摘要: html: <div class="form-control"> <label for="id_avatar1"><img name="image" style="width: 100px; height: 100px;" id="avatar_img" src="/static/img/默认.jp 阅读全文
posted @ 2018-10-12 17:20 风不再来 阅读(387) 评论(0) 推荐(0) 编辑
摘要: importlib模块 import importlib根据这个字符串来导入这个模块的 a=importlib.import_module('xx.oo')print(a.Person())里面可以传参数进去 这个上面就相当于from xx import oo后面就是实例化这个这个person这个类 阅读全文
posted @ 2018-10-06 21:34 风不再来 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #这个可以拿到这个django自带的User的表,这个是django自己的用户认证的表(创建超级用户和普通用户的表) 原理讲解: 这个相当于在session里面记录一个session_idrequest.session['user_id']=user[0].id生成特殊的字符串特殊字符串生成key的 阅读全文
posted @ 2018-10-05 18:51 风不再来 阅读(3491) 评论(0) 推荐(1) 编辑
摘要: from app01.models import * from django.shortcuts import HttpResponse 阅读全文
posted @ 2018-10-05 16:36 风不再来 阅读(325) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51