08 2022 档案

摘要:解决方法: 进入debug.py文件 将331行代码修改编码方式为‘utf-8’ 阅读全文
posted @ 2022-08-29 12:06 我叫好名字 阅读(48) 评论(0) 推荐(0) 编辑
摘要:问题1:Specifying a namespace in include() without providing an app_name is not supported. # django1.x中, urls.py urlpatterns = [ url(r'^admin/', include( 阅读全文
posted @ 2022-08-26 10:22 我叫好名字 阅读(24) 评论(0) 推荐(0) 编辑
摘要:运行项目时报错“query = query.decode(errors=‘replace‘) AttributeError: ‘str‘ object has no attribute ‘decode‘”(虚拟环境下) 解决方法: 在报错内容中进入“~/.virtualenvs/your_env_n 阅读全文
posted @ 2022-08-26 10:08 我叫好名字 阅读(106) 评论(0) 推荐(0) 编辑
摘要:问题1:创建用户时是否使用的是create_user 在账号注册的时候,要用objects.create_user()函数,create()是明文存储 create_user()这个函数会将密码自动加密,密文存储,加密规则“pbkdf2_sha256” authenticate()会将输入的明文密码 阅读全文
posted @ 2022-08-26 09:53 我叫好名字 阅读(351) 评论(0) 推荐(0) 编辑
摘要:1,下载UltraEdit编辑器 链接下载: http://wm.makeding.com/iclk/?zoneid=38308 2,使用UltraEdit编辑器修改nslicense.dll文件 1, nslicense.dll文件: 2, 在UltraEdit编辑器中打开nslicense.dl 阅读全文
posted @ 2022-08-24 13:17 我叫好名字 阅读(762) 评论(0) 推荐(0) 编辑
摘要:1,尝试将包加入sys.path settings.py 2,此时发现逻辑已走通,但是在使用 from 导入包时代码下依旧飘红,在File --> settings中将包设置为source root 阅读全文
posted @ 2022-08-23 15:05 我叫好名字 阅读(420) 评论(0) 推荐(0) 编辑
摘要:where python cd python3.6\Scripts # 为了在别的地方也能使用workon pip install virtualenv pip install virtualenvwrapper 或者 virtualwrapper-win(windows) mkvirtualenv 阅读全文
posted @ 2022-08-08 21:51 我叫好名字 阅读(87) 评论(0) 推荐(0) 编辑
摘要:进入dos界面(cmd:管理员权限): net start mysql # 尝试启动服务 mysqld --console # 查看错误日志(可能原因:环境变量path/my.ini文件内容等) 错误一: [ERROR] Can't open the mysql.plugin table. Plea 阅读全文
posted @ 2022-08-01 17:03 我叫好名字 阅读(700) 评论(1) 推荐(0) 编辑
摘要:view --> Appearance --> toolbar 阅读全文
posted @ 2022-08-01 13:36 我叫好名字 阅读(262) 评论(0) 推荐(0) 编辑
摘要:file --> settings --> 查找terminal,将shell path 换成 cmd.exe 阅读全文
posted @ 2022-08-01 13:26 我叫好名字 阅读(547) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示