摘要: INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 阅读全文
posted @ 2017-03-23 22:30 xqnq2007 阅读(182) 评论(0) 推荐(0) 编辑
摘要: apache配置文件中添加 WSGIScriptAlias /chatbot1 /Users/css/djangoprojects/chatbot1/chatbot1/wsgi.pyWSGIPythonPath /Users/css/djangoprojects/chatbot1/ <Directo 阅读全文
posted @ 2017-03-23 22:23 xqnq2007 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 第一次用pip安装 ,最终不能使用,原因是系统自带的apache,python和新安装的冲突, 所以需要安装时需要指定apache,python路径 所以用make makeinstall方式 参考链接 : http://www.jb51.net/article/76934.htm 1 下载 mod 阅读全文
posted @ 2017-03-23 22:20 xqnq2007 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 1 登录localhost/phpmyadmin 点击权限修改 修改root@localhost下的密码并执行 2 刷新页面 找到xampp文件夹下的phpMyAdmin文件夹中的config.inc.php,点击打开 找到password这一行,改为需要的密码,保存,再次刷新之前的页面。 阅读全文
posted @ 2017-03-23 22:09 xqnq2007 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 在已经安装brew前提下:brew install mysql-connector-c pip install MySQL-python 阅读全文
posted @ 2017-03-23 22:09 xqnq2007 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 原因:找不到mysql.sock文件 解决方法: 1 找到mysql.sock文件位置 echo "show variables" | mysql | grep "socket"或者echo "status" | mysql | grep "socket" 2 ln -s /var/lib/mysq 阅读全文
posted @ 2017-03-23 22:06 xqnq2007 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1 . 找到mysql的安装路径 2 ln -s /usr/local/mysql/bin/mysql /usr/bin 做个链接即可 阅读全文
posted @ 2017-03-23 22:01 xqnq2007 阅读(144) 评论(0) 推荐(0) 编辑
摘要: wamp 配置django admin页面样式丢失问题 第一种方法:在apache配置文件httpd.conf中加入如下代码:Alias /static "E:\Python27\Lib\site-packages\django\contrib\admin\static"<Directory "E: 阅读全文
posted @ 2017-03-23 21:59 xqnq2007 阅读(3569) 评论(0) 推荐(0) 编辑
摘要: 更换 mac时 开发证书,先导出, 后导入,如果出现错误,把projects自动签名改为手动 阅读全文
posted @ 2017-03-23 21:52 xqnq2007 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1 安装xcode 2 安装 brew ruby-e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 3 安装 python brew install python 阅读全文
posted @ 2017-03-23 21:51 xqnq2007 阅读(147) 评论(0) 推荐(0) 编辑
摘要: /usr/local/Frameworks/Python.framework/Versions/2.7/bin 阅读全文
posted @ 2017-03-23 21:50 xqnq2007 阅读(2989) 评论(0) 推荐(0) 编辑
摘要: 1、打开控制台:ssh-keygen -t rsa -C "GIT上的账号邮箱" 2、回车 3、输入密码(git上的账号密码) 4、确认密码 5、输入命令 cd .ssh 6、输入命令 cat id_rsa.pub 7、复制出现的代码,打开GIT平台,找到SSH KEY管理菜单,在对应输入框里输入刚 阅读全文
posted @ 2017-03-23 21:49 xqnq2007 阅读(260) 评论(0) 推荐(0) 编辑
摘要: <!-- li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 22.0px; font: 16.0px 'PingFang TC'; color: #333333} span.s1 {background-color: #ffffff} spa 阅读全文
posted @ 2017-03-23 21:48 xqnq2007 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 1 找到所安装python路径/usr/local/Cellar/python/2.7.13/bin2 vim ~/.bash_profile 3 添加如下代码: PATH="/usr/local/Cellar/python/2.7.13/bin:${PATH}"export PATH4 保存退出 阅读全文
posted @ 2017-03-23 18:38 xqnq2007 阅读(2058) 评论(0) 推荐(0) 编辑