会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Q
博客园
首页
新随笔
联系
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
下一页
2019年3月24日
python - django authenticate 返回结果一直是None
摘要: # 不论怎么测试 authenticate 返回结果一直是None,查了查原因好像是 django 2.1 版本的问题 ( 我用的是 2.1.7) 解决方法: 1. 先导入 from django.contrib.auth.hashers import check_password 2. 按照步骤,
阅读全文
posted @ 2019-03-24 14:36 _Q
阅读(1493)
评论(0)
推荐(0)
2019年3月22日
Linux - 运行 django 时 :django.db.utils.Notsupportederror: urls not supported
摘要: 运行 django 是异常:django.db.utils.Notsupportederror: urls not supported 原因:sqlite3版本3.7的问题 解决:直接改源码 1. pip3 show django 找到自己安装的 django 文件路径 2. /home/pytho
阅读全文
posted @ 2019-03-22 01:26 _Q
阅读(1048)
评论(0)
推荐(0)
Linux - 查看pip安装的包路径
摘要: pip show django
阅读全文
posted @ 2019-03-22 01:11 _Q
阅读(4719)
评论(0)
推荐(0)
Linux - 简单设置 vim (tab, 行号, 换行)
摘要: # 先进行这两步操作cd /etc/ vi vim/vimrc ## 将下面的设置直接添加到 vimrc 中 1. 设置 tab 四个空格: set tabstop=4 2. 显示行号 set nu 3. 将下一行和当前行 空格的位置一样: set autoindent
阅读全文
posted @ 2019-03-22 00:28 _Q
阅读(6522)
评论(0)
推荐(1)
2019年3月21日
Linux 之 光标消失隐藏术
摘要: 下面是 Linux 光标突然不见的解决办法: 直接敲命令行就行 echo -e "\033[?25l" 隐藏光标 echo -e "\033[?25h" 显示光标
阅读全文
posted @ 2019-03-21 22:23 _Q
阅读(3172)
评论(0)
推荐(0)
Linux - python pip3 无法使用情况
摘要: Linux 下使用 pip3 出了这样一个错误 error while loading shared libraries: libpython3.7m.so.1.0: cannot open shar # 主要原因是没有配置 python文件夹 下的 lib 文件夹 下的 libpython3.7m
阅读全文
posted @ 2019-03-21 22:02 _Q
阅读(3684)
评论(0)
推荐(0)
python - 栈与队列(只有代码)
摘要: 1. 栈: - 后进先出 2. 队列: - 先进先出
阅读全文
posted @ 2019-03-21 00:00 _Q
阅读(311)
评论(0)
推荐(0)
2019年3月19日
python - 自定义分页组件
摘要: """ 自定义分页组件 """ class Pagination(object): def __init__(self, current_page, all_count, base_url,params, per_page_num=8, pager_count=11, ): """ 封装分页相关数据 :param current_page...
阅读全文
posted @ 2019-03-19 20:20 _Q
阅读(274)
评论(0)
推荐(0)
python - django (创建到运行流程)
摘要: a = 0 """ 1. 创建 Django 操作文件 a. cmd 中选择路径: cd C:\Users\ad\PycharmProjects\index\1\文件名 b. 选择路径后,创建文件: django-admin startproject 文件名 c. 创建 app: ...
阅读全文
posted @ 2019-03-19 20:17 _Q
阅读(1145)
评论(0)
推荐(0)
python - django (ORM使用步骤)
摘要: print('asd') """ # 1. 手动创建一个数据库 # 2. 在 Django 项目中设置连接数据库的相关配置(告诉Django 连接哪一个数据库) 在 DATABASES 中 进行数据库配置: DATABASES = { 'default': { # 数据库连接类型 ...
阅读全文
posted @ 2019-03-19 20:16 _Q
阅读(923)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
下一页
公告