摘要:
https://segmentfault.com/a/1190000002645623 1、设置Git的user name和email:(如果是第一次的话) 2、生成密钥 连续3个回车。如果不需要密码的话。最后得到了两个文件:id_rsa和id_rsa.pub。 用vim打开id_rsa.pub 如 阅读全文
摘要:
http://www.jianshu.com/p/91047e3a4ee9 将项目放到git上,然后将pathonanywhere上的ssh传到git上,没有的话先创建,然后从git上把项目拷贝到pathonanywhere的根目录下/home/xqnq2007下 1 创建虚拟环境, 配置Virtu 阅读全文
摘要:
Pillow is a replacement for PIL, the Python Image Library, which provides image processing functionality and supports many file formats. 阅读全文
摘要:
导入数据库: 1 mysql>use ygeshop; ygeshop为数据库名 2 mysql>source 导入的文件名; 如我输入的命令行:mysql>source ygeshop.sql; 1、 显示数据库列表。 show databases; 缺省有两个数据库:mysql和test。 my 阅读全文
摘要:
https://jingyan.baidu.com/article/9c69d48fb9fd7b13c8024e6b.html 更新源列表 打开"终端窗口",输入"sudo apt-get update"-->回车-->"输入当前登录用户的管理员密码"-->回车,就可以了。 安装ssh 打开"终端窗 阅读全文
摘要:
获取远程某个分支: 1 git checkout --track origin/serverfix serverfix为分支名称 2 git checkout -b local-branchname origin/remote_branchname 就可以将远程分支映射到本地命名为local-bra 阅读全文
摘要:
http://blog.sina.com.cn/s/blog_6145ed810102vqu6.html 我是使用 brew 来安装的,让我们再回顾一下整个过程吧。如果你没有装 brew ,先看步骤一,否则直接看步骤二。 步骤一:安装 Homebrew 先看看是否满足下面条件: 满足了,就可以安装 阅读全文
摘要:
In 1.10, you can no longer pass import paths to url(), you need to pass the actual view function: 在django 1.10 里面urls.py 新的写法: urls.py 文件里添加blog的url: 阅读全文
摘要:
The use of patterns is deprecated in Django1.10. Therefore do not import 'patterns' and your url pattern should be as follows: 这个特性在1.9就声明了deprecated. 阅读全文
摘要:
IOError: No translation files found for default language zh-cn. 检查 ...\Lib\site-packages\Django-1.10.2-py2.7.egg\django\conf\locale下无zh-cn文件夹,有zh-Hans 阅读全文
摘要:
formtools not supported the Django 1.10 version please downgrade your Django release for the workaround. https://github.com/django/django-formtools/is 阅读全文
摘要:
配置如下,settings中配置: EMAIL_HOST = 'smtp.163.com' EMAIL_PORT = '25' EMAIL_HOST_USER = 'contact108@163.com' EMAIL_HOST_PASSWORD = '******' # 填密码 然后调用send_m 阅读全文
摘要:
首先找到django安装路径 Python import sys; sys.path = sys.path[1:]; import django; print(django.__path__) 得到 django 安装目录 ['/Library/python/2.7/site-packages/dj 阅读全文
摘要:
How to find the site-packages folder in Python? 在Mac OS或者Linux中比较有用,因为这些系统一般都同时安装了多个版本。尤其是Mac OS 10.5,目录结构太乱了 在python环境中: from distutils.sysconfig imp 阅读全文