New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TemplateDoesNotExist at /login/ #847

Closed
hmtiannan opened this Issue Dec 6, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@hmtiannan

hmtiannan commented Dec 6, 2017

[简述你的问题]

使用版本

[请提供你使用的Jumpserver版本 0.3.2 或 0.4.0]
0.3.2

问题复现步骤

[root@centos701 jumpserver-0.3.2-rc2]# python manage.py runserver 0.0.0.0:8000
Validating models...

0 errors found
December 06, 2017 - 22:33:13
Django version 1.6, using settings 'jumpserver.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[06/Dec/2017 22:33:31] "GET / HTTP/1.1" 302 0
[06/Dec/2017 22:33:31] "GET /login/ HTTP/1.1" 500 85400

具体表现[截图可能会更好些,最好能截全]

image

其他

TemplateDoesNotExist at /login/

Request Method: GET
http://192.168.163.130:8000/login/
1.6
TemplateDoesNotExist
login.html
/usr/lib64/python2.7/site-packages/django/template/loader.py in find_template, line 131
/usr/bin/python
2.7.5
['/root/jumpserver-0.3.2-rc2', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
Wed, 6 Dec 2017 22:33:31 +0800
Template-loader postmortem

Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
/root/jumpserver-0.3.2-rc2/templates/login.html (File does not exist)
Using loader django.template.loaders.app_directories.Loader:
/usr/lib64/python2.7/site-packages/django/contrib/admin/templates/login.html (File does not exist)
/usr/lib64/python2.7/site-packages/django/contrib/auth/templates/login.html (File does not exist)
/usr/lib/python2.7/site-packages/bootstrapform/templates/login.html (File does not exist)

@ibuler

This comment has been minimized.

Show comment
Hide comment
@ibuler

ibuler Jan 9, 2018

Member

查看 /root/jumpserver-0.3.2-rc2/templates/ 中是否有 login.html

Member

ibuler commented Jan 9, 2018

查看 /root/jumpserver-0.3.2-rc2/templates/ 中是否有 login.html

@ibuler ibuler closed this Jan 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment