Re: How does django pass data through post?

2016-12-02 Thread KARTHIKEYAN THANIKACHALAM
Hi, you have to add name attribute in html file and use same name attribute in request dictionary to get value On Fri, Dec 2, 2016 at 8:21 AM, Jordan W wrote: > Daniel, you nailed it! I didn't have the name specified. Adding that makes > it propagate through! > > On

Re: How does django pass data through post?

2016-12-01 Thread Jordan W
Daniel, you nailed it! I didn't have the name specified. Adding that makes it propagate through! On Monday, November 28, 2016 at 6:34:19 PM UTC-6, Jordan W wrote: > > Hi, > > I have been working on a small project for myself and some friends, and I > seem to have hit a hitch in getting it to

How does django pass data through post?

2016-11-29 Thread Daniel Roseman
The problem is in your html. Browsers can only send data for inputs with a `name` attribute, which Django then uses as the key in the querydict, whereas the `value` attribute becomes the value for that key. None of your inputs have names. It also doesn't make sense to add the id to the form or

Re: How does django pass data through post?

2016-11-28 Thread Vimarsh Chaturvedi
Hey Jordan, Please share your views.py as well. On Tuesday, November 29, 2016 at 6:04:19 AM UTC+5:30, Jordan W wrote: > > Hi, > > I have been working on a small project for myself and some friends, and I > seem to have hit a hitch in getting it to work as expected. > > In my detail view, I

How does django pass data through post?

2016-11-28 Thread Jordan W
Hi, I have been working on a small project for myself and some friends, and I seem to have hit a hitch in getting it to work as expected. In my detail view, I have a small simple form: {% csrf_token %} Prepare My main list view and detail view are class based views, with