kakulukia / pypugjs

PugJS syntax adapter for Django, Jinja2 and Mako templates
MIT License
254 stars 40 forks source link

Incompatibility with Django-Template-Partials #80

Open Saman-Zand-H opened 9 months ago

Saman-Zand-H commented 9 months ago

Description

I have a Django project. I wanted to use pypugjs as well. I also use template_partials. I observed that pugs weren't being compiled. So this package won't work if used along with template_partials.

What I Did

I commented all the installed apps and realized that the problem is resolved when I comment 'template_partials'. note that i deleted all of 'template_partials' config, and commented it, and then it worked.

kakulukia commented 9 months ago

Hi @Saman-Zand-H, did you actually try mixins that the pug syntax offers. It looks to me that you are trying to use a second module for something that already possible with just using mixins.

Shortly testing it myself i also get broken templates because of an error in

image

template_partials which seems to not respect the django template config. Don't know why it kicks in after just registering the app but not changing the template loader settings. that should not happen at all.

Saman-Zand-H commented 9 months ago

thanks for the quick response. I'll check that and inform you.