Re: Nested dictionaries

2019-07-01 Thread Derek
I don't see how > to write the models to work with the serializers. Does anyone know of a > tutorial that demonstrates working with nested dictionaries? > Thank you, > Dave E. > -- You received this message because you are subscribed to the Google Groups "Django us

Re: Nested dictionaries

2019-06-30 Thread Joe Reitman
I use the JSON module to encode and decode JSON. On Sunday, June 30, 2019 at 9:26:04 AM UTC-5, David Elphee wrote: > > I guess I don’t even need Django or models to do what I described. But > yes, for future functionality, I’d like to be able to store JSON to a > database. > -- You received

Re: Nested dictionaries

2019-06-30 Thread 'David Elphee' via Django users
I guess I don’t even need Django or models to do what I described. But yes, for future functionality, I’d like to be able to store JSON to a database. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: Nested dictionaries

2019-06-30 Thread 'David Elphee' via Django users
*JSON -- 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 post to this group, send email to django-users@googlegroups.c

Re: Nested dictionaries

2019-06-30 Thread 'David Elphee' via Django users
I guess I don’t even need Django or models to do what I described. But yes, for future functionality, I’d like to be able to store Jain to a database. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: Nested dictionaries

2019-06-30 Thread Joe Reitman
Does anyone know of a > tutorial that demonstrates working with nested dictionaries? > Thank you, > Dave E. > -- 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, se

Nested dictionaries

2019-06-29 Thread 'David Elphee' via Django users
and I have looked at the documentation on serializing nested data, but I don't see how to write the models to work with the serializers.  Does anyone know of a tutorial that demonstrates working with nested dictionaries?Thank you,Dave E. -- You received this message because you are subscribe

Re: Nested Dictionaries in Django Templates

2008-06-19 Thread phillc
you are implementing logic into the templates, which django templating attempts to prevent. On Jun 17, 12:27 pm, Keybo <[EMAIL PROTECTED]> wrote: > Hello, >        I have a question regarding displaying information in django > templates. I would like to display a nested dictionary(Hash) in the >

Nested Dictionaries in Django Templates

2008-06-17 Thread Keybo
Hello, I have a question regarding displaying information in django templates. I would like to display a nested dictionary(Hash) in the templates. However the only problem is that the values in the dictionary are either strings or other dictionaries. If there a way of knowing the type of va

Re: nested dictionaries in templates

2007-05-19 Thread Sven Herzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Aidas, thx for the fast help. I hope i get better with django soon, that I can help others too. greets Sven Aidas Bendoraitis wrote: > Hi Sven! > > To get a value from a dictionary by a variable key, you either need a > custom filter like {{ di

Re: nested dictionaries in templates

2007-05-17 Thread Aidas Bendoraitis
Hi Sven! To get a value from a dictionary by a variable key, you either need a custom filter like {{ dictionary|dict_value:key }} def dict_value(dict, key): """ returns the value of a dictionary key ... """ try: return dict[key] except: return None register.filte

nested dictionaries in templates

2007-05-17 Thread Sven Herzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm sorry that I have to ask again for help, but, I couldn't figure it out how to access nested directories in templates. My Problem ist, that I have 3 categories (which I get from the DB), and for every category a queryset. and the structure l

Re: templates: nested dictionaries

2007-01-16 Thread Russell Keith-Magee
On 1/16/07, fiedzia <[EMAIL PROTECTED]> wrote: Looking for a way to handle nested dicts within templates I've found following syntax to work: % for cat in songs.items %} {% for author in cat.1.items %} {% for song in author.1.items %} ... but I

templates: nested dictionaries

2007-01-16 Thread fiedzia
Looking for a way to handle nested dicts within templates I've found following syntax to work: % for cat in songs.items %} {% for author in cat.1.items %} {% for song in author.1.items %} ... but I can't find any documentation for that, so the questi