Re: How to set up a form from an existing view

2016-08-27 Thread ludovic coues
POST is a dictionnary, with all the input there was in the form which contain the submit button that was clicked. The key will be the name of the input and the value will be the input value. For exemple, with this html: If the user cli

Re: How to set up a form from an existing view

2016-08-27 Thread Aaron Weisberg
Thanks ludovic I'll try that. I have a very basic form question. What attribute gets posted in the .POST? Is that value? In input? Secondly, the default value in the function, is that a type like text or integer or is it just a place holder like "Chicago" or "2" Thanks On Aug 26, 2016 11:33 AM,

Re: How to set up a form from an existing view

2016-08-26 Thread ludovic coues
First, your html is invalid. You can't put a whole form in a link. Nor a button. You can remove the element and put the shiny class on the input[type=submit] About your input[type=submit], I have some doubts about cross brother compatibility of what you are trying to achieve. It would be either t

How to set up a form from an existing view

2016-08-26 Thread Aaron Weisberg
Good morning, I have been working on an app displaying some analytics and I want to incorporate some user feedback and I am having trouble figuring out how: I have a detail view: Enter code here... #views.py def detail(request, game_id): games = Game.objects.get(pk=game_id) context = {