Django Template Tags not working inside script

151 views
Skip to first unread message

Rain

unread,
Oct 10, 2019, 10:22:08 AM10/10/19
to Django users
I want to add an for each method in inside script but for some reason django template tags not working in this case only.
can someone please help me ! thanks alot




wd

unread,
Oct 10, 2019, 10:56:33 AM10/10/19
to django...@googlegroups.com
hi, 

I didn't think django template tags are relevant with script or any html code. They are totally different things.
I think it's just your code editor didn't recognize the tags, have you tried ignore them and see if django will report an error ?

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6276f8cc-d47f-4d4a-8002-04c5cbff786c%40googlegroups.com.

Andréas Kühne

unread,
Oct 10, 2019, 11:05:38 AM10/10/19
to django...@googlegroups.com
Hi,

This is completely vaid, as long as you use a render method to render the html file. It shouldn't be a problem. How do you include this in your html page?

Regards,

Andréas


Rain

unread,
Oct 10, 2019, 11:24:13 AM10/10/19
to django...@googlegroups.com
Thanks Alot. its just my  code editor not reading it. appreciate your Help..!!

Rain

unread,
Oct 10, 2019, 11:24:49 AM10/10/19
to django...@googlegroups.com
its totally fine now its just my code editor not reading it thanks for your help. Appreciated..!!

Reply all
Reply to author
Forward
0 new messages