- 博客(6)
- 收藏
- 关注
原创 django-registration模块问题
已经pip安装好了django-registration但是在运行时报错:ImportError: No module named 'registration'解决方法:pip install django-registration-redux如果还不可以再试一下:easy_install django-registration-redux...
2019-03-01 18:09:05
1014
转载 Django 错误:TypeError at / 'bool' object is not callable
使用 Django自带的 auth 用户验证功能,编写函数,使用 is_authenticated 检查用户是否登录,结果报错: TypeError at / 'bool' object is not callable 编写函数如下:def index(request, pid=None, del_pass=None): if request.user.is_auth...
2019-03-01 10:32:26
756
转载 Ubuntu16.04 安装MySQLdb-No module named 'ConfigParser'
正常安装终端输入:pip install mysql-python出现报错:ImportError: No module named 'ConfigParser' ----------------------------------------Command "python setup.py egg_info" failed with error code 1 in /tmp/pip...
2019-02-27 18:15:19
439
原创 Ubuntu下运行scrapy爬虫框架No module named 'OpenSSL'
终端运行启动新项目scrapy startproject tutorial出现报错:Traceback (most recent call last): File "/usr/local/bin/scrapy", line 11, in <module> sys.exit(execute()).. File "/usr/local/lib/python3.5...
2019-02-27 17:33:17
1569
原创 ubuntu下关于不能启动mongod服务问题
正常输入sudo service mongod start ,发现并没有启动服务最后排忧解难,发现以下这个方法可以终端输入sudo mongod --dbpath=/var/lib/mongodb然后在另一个终端输入mongo,就可以了!...
2019-02-27 17:04:42
963
原创 关于Django_context问题--context must be a dict rather than RequestContext
最开始编写的views.pyfrom django.template import Context, Templatedef contact(request): form=forms.ContactForm() template=get_template('contact.html') request_context=RequestContext(request)...
2019-02-27 15:08:29
969
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人