Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with Django-Template-Partials #80

Open
Saman-Zand-H opened this issue Dec 18, 2023 · 2 comments
Open

Incompatibility with Django-Template-Partials #80

Saman-Zand-H opened this issue Dec 18, 2023 · 2 comments

Comments

@Saman-Zand-H
Copy link

  • pypugjs version: 5.9.12
  • Django version: 5.0
  • Python version: 3.12
  • Operating System: Kali Linux

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants