question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid filter: '__pypugjs_iter'

See original GitHub issue
  • pypugjs version: Latest
  • Django version: 1.9.1
  • Python version: 2.7
  • Operating System: Ubuntu

Description

Getting Invalid filter: '__pypugjs_iter' when using each in template when i try to iterate over a list of dicts.

div.page-header.container-fluid
    h4.page-title {{ page_header.title }}
    div.page-subtitle
        ul.list-inline.mb-0
        each s in page_header.subtitle
            p Test

Looks like the package is adding a filter on values… what is the purpose of that?

<div class="page-subtitle">
<ul class="list-inline mb-0"></ul>{% for s in page_header.subtitle\|__pypugjs_iter:1 %}
<p>Test</p>{% endfor %}
</div>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

0reactions
kakulukiacommented, Feb 10, 2019

understand … i will put it one level up 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

django: Invalid filter - Stack Overflow
I load the tags in base.html {% load tags %} and use the custom filter in index.html and got the invalid filter error....
Read more >
jinja invalid filter, filter is built in - splunktool
Variables can be modified by filters. Filters are separated from the variable by a pipe symbol (|) and may have optional arguments in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found