fix templates to be compatible with django 1.5+
allow gargoyle to depend on django 1.5+