Sunday, June 30, 2019

Re: Nested dictionaries

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 receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b5118e11-dcf5-4dfb-8135-dfe8b42a4395%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Nested dictionaries

*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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4e300b0d-9f69-4b83-86d7-03df58f7617f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Nested dictionaries

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 receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ac41b77e-854c-4a0a-af09-7e8cb2e69c73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Nested dictionaries

You want to save JSON data to a database?

On Saturday, June 29, 2019 at 8:47:38 PM UTC-5, David Elphee wrote:
Hello,
I am new at django and in over my head I think.  I am trying to create a kind of shim that will accept JSON from a webhook POST, work with the data using Python, and then POST some new JSON to another API.  I have successfully worked through tutorials that have "flat" data, 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 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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/18e4f4ff-db22-4ecf-aaf3-f86780ed41f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Help

Also, you will have to wrap your entire form in a <form method="POST"> tag. Then you can use a submit button to submit the data to the server.

If you are displaying data from the database and allowing the user to make and save changes, you first have to render the data from the view.

What is the Javascript code?

On Sunday, June 30, 2019 at 7:54:43 AM UTC-5, pramod wrote:
I wrote a js for that wer it display the results  of addition automatically through id
If I use like this {{form. Full}} How do I pass the Id to the js? 

On Jun 30, 2019 6:19 PM, "Joe Reitman" <jreit...@gmail.com> wrote:
Don't use an 'input' element to display your form field.

Try something like this:

<td>{{ form.date }}</td>



On Sunday, June 30, 2019 at 7:35:42 AM UTC-5, pramod wrote:
The give to get the input  from the user in table? 

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2ba6a878-9dee-47ed-8f36-48d51d1bfca5%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a8512369-4e84-48c0-a79e-47ebd9213622%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Help

I wrote a js for that wer it display the results  of addition automatically through id
If I use like this {{form. Full}} How do I pass the Id to the js? 

On Jun 30, 2019 6:19 PM, "Joe Reitman" <jreitman28@gmail.com> wrote:
Don't use an 'input' element to display your form field.

Try something like this:

<td>{{ form.date }}</td>



On Sunday, June 30, 2019 at 7:35:42 AM UTC-5, pramod wrote:
The give to get the input  from the user in table? 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2ba6a878-9dee-47ed-8f36-48d51d1bfca5%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABWAz%3D3u3qnruBb%3DEQ7m776aq9MA4jfgSKqbC0mB1NvFqEXZ2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Help

Don't use an 'input' element to display your form field.

Try something like this:

<td>{{ form.date }}</td>



On Sunday, June 30, 2019 at 7:35:42 AM UTC-5, pramod wrote:
The give to get the input  from the user in table? 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2ba6a878-9dee-47ed-8f36-48d51d1bfca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.