会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
篓子
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2019年1月18日
css动画插件
摘要: git下载地址:https://github.com/daneden/animate.css 参数: 完整示例:
阅读全文
posted @ 2019-01-18 09:19 篓子
阅读(309)
评论(0)
推荐(0)
2019年1月12日
django 模板不需要使用load static设置
摘要: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')] , 'APP_DIRS': True, 'OPTIO
阅读全文
posted @ 2019-01-12 17:44 篓子
阅读(1520)
评论(0)
推荐(0)
2019年1月8日
django migrate错误解决方法
摘要: 执行migrate命令会报错的原因是,数据库的django_migrations表中迁移版本记录和代码中的迁移脚本不一致 解决办法: 使用--fake参数: 首先对比数据库中的迁移脚本和代码中的迁移脚本,然后找到哪个不同之后再使用--fake将代码中的迁移脚本添加到migrations表中但不会执行
阅读全文
posted @ 2019-01-08 10:42 篓子
阅读(1155)
评论(0)
推荐(0)
2018年12月25日
随机切换user-agent
摘要: import fake_useragentimport randomua = fake_useragent.UserAgent()print(getattr(ua,random.choice(list(fake_useragent.settings.SHORTCUTS.keys()))))
阅读全文
posted @ 2018-12-25 16:29 篓子
阅读(373)
评论(0)
推荐(0)
2018年12月13日
windows上运行celery4.x就会出现问题
摘要: windows上运行celery4.x就会出现问题: ValueError: not enough values to unpack (expected 3, got 0) 解决办法: pip install eventlet 启动worker的时候加一个参数,如下: celery -A <mymo
阅读全文
posted @ 2018-12-13 17:39 篓子
阅读(719)
评论(0)
推荐(0)
2018年12月12日
python 社交认证模块
摘要: pip install python-social-auth https://python-social-auth.readthedocs.io/en/latest/ 文档
阅读全文
posted @ 2018-12-12 15:05 篓子
阅读(152)
评论(0)
推荐(0)
2018年12月11日
django修改个人资料
摘要: model.py views.py
阅读全文
posted @ 2018-12-11 10:01 篓子
阅读(1168)
评论(0)
推荐(0)
2018年12月10日
django自定义注册用户
摘要: views.py
阅读全文
posted @ 2018-12-10 17:09 篓子
阅读(297)
评论(0)
推荐(0)
django的登录和邮箱修改密码认证
摘要: urls.py
阅读全文
posted @ 2018-12-10 15:15 篓子
阅读(645)
评论(0)
推荐(0)
2018年12月7日
django 数据库迁移
摘要: 一,简单的数据导出与导入(简单的迁移) 1. django 项目提供了一个导出的方法 python manage.py dumpdata, 不指定 appname 时默认为导出所有的app 1 python manage.py dumpdata [appname] > appname_data.js
阅读全文
posted @ 2018-12-07 12:13 篓子
阅读(553)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告