Re: Django could not parse the remainder

2022-06-23 Thread Shaheed Haque
>From memory, At least in Jinja templates, you can explicitly use the dictionary form {{ key["hypen-ated"] }}... Have you tried that? On Thu, 23 Jun 2022, 14:44 Ryan Nowakowski, wrote: > > https://stackoverflow.com/questions/8252387/how-do-i-access-dictionary-keys-that-contain-hyphens-from-withi

Re: Django could not parse the remainder

2022-06-23 Thread Lakshyaraj Dash XI-D 25
You can have a template filter that can parse your dictionary. On Thu, Jun 23, 2022, 19:14 Ryan Nowakowski wrote: > > https://stackoverflow.com/questions/8252387/how-do-i-access-dictionary-keys-that-contain-hyphens-from-within-a-django-templa > > On Mon, Jun 20, 2022 at 07:52:46AM -0700, Koushik

Re: Django could not parse the remainder

2022-06-23 Thread Ryan Nowakowski
https://stackoverflow.com/questions/8252387/how-do-i-access-dictionary-keys-that-contain-hyphens-from-within-a-django-templa On Mon, Jun 20, 2022 at 07:52:46AM -0700, Koushik Romel wrote: > When trying to get a value from restapi in for loop to display it takes > hyphen(-) as minus(-). And there

Django could not parse the remainder

2022-06-20 Thread Koushik Romel
When trying to get a value from restapi in for loop to display it takes hyphen(-) as minus(-). And there is no way to change the api structure because it is fixed. Im struck in this anyone help me.. The exact error and the expected json is given below is down below when i try to print {{key}} th