为了账号安全,请及时绑定邮箱和手机立即绑定

报错,不能登录...

错误信息如下:

InvalidTemplateLibrary at /admin/login/

Invalid template library specified. ImportError raised when trying to load 'django.templatetags.future': cannot import name 'RemovedInDjango110Warning'

Request Method:

GET    

Request URL:

http://127.0.0.1:8000/admin/login/?next=/admin/    

Django Version:

1.10.5    

Exception Type:

InvalidTemplateLibrary    

Exception Value:

Invalid template library specified. ImportError raised when trying to load 'django.templatetags.future': cannot import name 'RemovedInDjango110Warning'
   

Exception Location:

D:\software\python3\lib\site-packages\django\template\backends\django.py in get_package_libraries, line 130    

Python Executable:

D:\software\python3\python3.exe    

Python Version:

3.5.1    

Python Path:

['D:\\code\\python\\Django_Tutorial\\django_tutorial',
'D:\\software\\python3\\python35.zip',
'D:\\software\\python3\\DLLs',
'D:\\software\\python3\\lib',
'D:\\software\\python3',
'D:\\software\\python3\\lib\\site-packages']
   

Server time:

星期五, 10 二月 2017 01:20:19 +0800    


正在回答

1 回答

alarido commented on 22 Aug 2016

I had to remove the following files to solve the problem:

/usr/local/lib/python2.7/dist-packages/django/templatetags/future.py
/usr/local/lib/python2.7/dist-packages/django/templatetags/future.pyc


   参考链接:https://github.com/digitalocean/netbox/issues/497

1 回复 有任何疑惑可以回复我~
#1

慕慕6496279

1.10已经移除了django.templatetags.future这个模块。如果之前装了1.10以下的django,没删干净就会出现这个问题,楼上正解!!还可以直接删了这个环境,重建一个。
2018-02-28 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
django入门与实践
  • 参与学习       65199    人
  • 解答问题       868    个

手把手带你进入Django开发的大门,充分领略Django的魅力

进入课程

报错,不能登录...

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信