Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- en urls.py:
- urlpatterns += patterns('', url(r'^accounts/login/$', 'django.contrib.auth.views.login'))
- en settings.py:
- # AUTHENTICATION SETTINGS
- LOGIN_URL = '/accounts/login/'
- LOGOUT_URL = '/accounts/logout/'
- al tratar de entrar a la view que tengo con el decorator login_required me re-dirige a esta url:
- http://localhost:8000/accounts/login/?next=/assetManager/1
- el error que sale es:
- TemplateDoesNotExist at /accounts/login/
- registration/login.html
- Request Method: GET
- Request URL: http://localhost:8000/accounts/login/?next=/assetManager/1
- Django Version: 1.7.5
- Exception Type: TemplateDoesNotExist
- Exception Value:
- registration/login.html
- Exception Location: /home/.../local/lib/python2.7/site-packages/django/template/loader.py in find_template, line 136
- Python Executable: /home/.../bin/python
- Python Version: 2.7.6
- Python Path:
- ['/home/.../ws_api',
- '/home/.../lib/python2.7',
- '/home/.../lib/python2.7/plat-x86_64-linux-gnu',
- '/home/.../lib/python2.7/lib-tk',
- '/home/.../lib/python2.7/lib-old',
- '/home/.../lib/python2.7/lib-dynload',
- '/usr/lib/python2.7',
- '/usr/lib/python2.7/plat-x86_64-linux-gnu',
- '/usr/lib/python2.7/lib-tk',
- '/home/.../local/lib/python2.7/site-packages']
- Server time: Fri, 6 Mar 2015 13:03:25 +0000
- Template-loader postmortem
- Django tried loading these templates, in this order:
- Using loader django.template.loaders.filesystem.Loader:
- Using loader django.template.loaders.app_directories.Loader:
- /home/.../local/lib/python2.7/site-packages/django/contrib/admin/templates/registration/login.html (File does not exist)
- /home/.../local/lib/python2.7/site-packages/django/contrib/auth/templates/registration/login.html (File does not exist)
- /home/.../local/lib/python2.7/site-packages/django_extensions/templates/registration/login.html (File does not exist)
- /home/.../ws_api/Prices/templates/registration/login.html (File does not exist)
Advertisement
Add Comment
Please, Sign In to add comment