I try to use the filter 'localize'
<https://docs.djangoproject.com/en/3.1/topics/i18n/formatting/#std:templatefilter-localize>
in a template.

Django says 'TemplateSyntaxError':
TemplateSyntaxError at /beelden-en-glas/zomergeluid/
Invalid filter: 'unlocalize'
Request Method:         GET
Request URL:
https://glaskunst-3.liakoster.nl/beelden-en-glas/zomergeluid/?beelden-en-glas-te-koop
Django Version:         3.1.7 Exception Type:
TemplateSyntaxError Exception Value:    
Invalid filter: 'unlocalize'
Exception
Location: 
/var/django/liakoster.nl/glaskunst-3/lib/python3.7/site-packages/django/template/base.py,
line 569, in find_filter Python Executable:     /usr/bin/python3
Python Version: 3.7.3 
...
Error during template rendering

In
template 
/var/django/liakoster.nl/glaskunst-3/art/templates/art_artobject.json-ld,
error at line 30 Invalid filter: 'unlocalize'
...
30 "price": "{{ art_artobject.price|unlocalize }}", "priceCurrency":
"EUR",{% endif %}
...

Am I doing something wrong?

-- 

Jaap van Wingerde
e-mail: j...@vanwingerde.nl

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20210319225601.059bbada%40jaap.artio.shrl.nl.

Attachment: pgpCp84wUApuW.pgp
Description: OpenPGP digitale ondertekening

Reply via email to