maraujop/django-crispy-forms — pull request #58 by okke-formsma (2012-06-05 09:02:49+00:00)
Title: Fixed get_template importing issue.

This pull request fixes an issue when running syncdb on projects which (indirectly) include utils.py from the django-crispy-forms module. Apparently, the template source loaders are not working yet when the files are imported, thus raising an error when used:

(Error django.core.exceptions.ImproperlyConfigured: Error importing template source loader django.template.loaders.app_directories.Loader: "'module' object has no attribute 'Loader'")

The caching of the template is unnecessary as the Django template loader cache module will cache all templates if configured to do so, so I removed it.