mikl/django-password-required — pull request #1 by TTimo (2014-08-07 22:17:49+00:00)
Title: Problems with latest python / Django / distutils ?

Hey @mikl .. thanks for this useful app, I use it on occasion. I'm doing a deployment on a Python 2.7, Django 1.6.5 and this time it's having trouble:

TemplateDoesNotExist at /password_required/

Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
/var/www/myapp/templates/password_required_login.html (File does not exist)
Using loader django.template.loaders.app_directories.Loader:
/usr/local/lib/python2.7/dist-packages/django/contrib/admin/templates/password_required_login.html (File does not exist)
/usr/local/lib/python2.7/dist-packages/django/contrib/auth/templates/password_required_login.html (File does not exist)
/usr/local/lib/python2.7/dist-packages/crispy_forms/templates/password_required_login.html (File does not exist)

So first thing I notice, the .html file isn't included in the install anymore - this fix?
But even after that, Django doesn't know where to look for the template.

For now I have a workaround by copying your .html template to my /var/www/myapp/templates/ folder..

Cheers,
TTimo