django
caroline_jhd
这个作者很懒,什么都没留下…
展开
-
关于Django_context问题--context must be a dict rather than RequestContext
最开始编写的views.py from django.template import Context, Template def contact(request): form=forms.ContactForm() template=get_template('contact.html') request_context=RequestContext(request) ...原创 2019-02-27 15:08:29 · 940 阅读 · 0 评论 -
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 · 730 阅读 · 0 评论 -
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 · 968 阅读 · 0 评论