Fix the case when Django template actually uses booleans

using `debug=settings.DEBUG` in the asset definition in template actually uses a boolean, which fails to convert to lower case.
Merge pull request #28 from rassie/patch-2

Fix the case when Django template actually uses booleans