Initially I had written the "else" statement at the wrong place. Moved it under
the very first "if" and used then returned the HTTPresponse on the right place
inside the function
Regards,
Amitesh S
On Wednesday, 13 November, 2019, 5:42:57 AM IST, o1bigtenor
wrote:
On Tue, Nov
On Tue, Nov 12, 2019 at 12:39 PM 'Amitesh Sahay' via Django users
wrote:
>
> Hello Kasper,
>
> Thank you for the hint. I found my mistake and resolved it.
>
So what did you do?
(doesn't need to have all the detail just the idea please)
TIA
--
You received this message because you are
Hello Kasper,
Thank you for the hint. I found my mistake and resolved it.
Regards,
Amitesh
On Tuesday, 12 November, 2019, 2:02:09 AM IST, Kasper Laudrup
wrote:
Hi Amitesh,
In this view:
On 11/11/2019 20.36, 'Amitesh Sahay' via Django users wrote:
>
> def contact(request):
>
Hi Amitesh,
In this view:
On 11/11/2019 20.36, 'Amitesh Sahay' via Django users wrote:
def contact(request):
if request.method =='POST':
name_r = request.POST.get('name')
email_r = request.POST.get('email')
phone_r = request.POST.get('phone')
comment_r
Hello Members,
I am creating a simple django forms and integrating it with models. I have
followed the django docs to perform the task, but I believe that I am doing
some mistake due to which I am getting
"ValueError at /blog/contact/". Below is the full error stack:
Environment:
Request
5 matches
Mail list logo