ppsirg

Untitled

Mar 6th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. en urls.py:
  2. urlpatterns += patterns('', url(r'^accounts/login/$', 'django.contrib.auth.views.login'))
  3.  
  4. en settings.py:
  5. # AUTHENTICATION SETTINGS
  6. LOGIN_URL = '/accounts/login/'
  7. LOGOUT_URL = '/accounts/logout/'
  8.  
  9. al tratar de entrar a la view que tengo con el decorator login_required me re-dirige a esta url:
  10. http://localhost:8000/accounts/login/?next=/assetManager/1
  11.  
  12. el error que sale es:
  13.  
  14. TemplateDoesNotExist at /accounts/login/
  15.  
  16. registration/login.html
  17.  
  18. Request Method: GET
  19. Request URL: http://localhost:8000/accounts/login/?next=/assetManager/1
  20. Django Version: 1.7.5
  21. Exception Type: TemplateDoesNotExist
  22. Exception Value:
  23.  
  24. registration/login.html
  25.  
  26. Exception Location: /home/.../local/lib/python2.7/site-packages/django/template/loader.py in find_template, line 136
  27. Python Executable: /home/.../bin/python
  28. Python Version: 2.7.6
  29. Python Path:
  30.  
  31. ['/home/.../ws_api',
  32. '/home/.../lib/python2.7',
  33. '/home/.../lib/python2.7/plat-x86_64-linux-gnu',
  34. '/home/.../lib/python2.7/lib-tk',
  35. '/home/.../lib/python2.7/lib-old',
  36. '/home/.../lib/python2.7/lib-dynload',
  37. '/usr/lib/python2.7',
  38. '/usr/lib/python2.7/plat-x86_64-linux-gnu',
  39. '/usr/lib/python2.7/lib-tk',
  40. '/home/.../local/lib/python2.7/site-packages']
  41.  
  42. Server time: Fri, 6 Mar 2015 13:03:25 +0000
  43. Template-loader postmortem
  44.  
  45. Django tried loading these templates, in this order:
  46.  
  47. Using loader django.template.loaders.filesystem.Loader:
  48. Using loader django.template.loaders.app_directories.Loader:
  49. /home/.../local/lib/python2.7/site-packages/django/contrib/admin/templates/registration/login.html (File does not exist)
  50. /home/.../local/lib/python2.7/site-packages/django/contrib/auth/templates/registration/login.html (File does not exist)
  51. /home/.../local/lib/python2.7/site-packages/django_extensions/templates/registration/login.html (File does not exist)
  52. /home/.../ws_api/Prices/templates/registration/login.html (File does not exist)
Advertisement
Add Comment
Please, Sign In to add comment