Re: create connection error

2016-09-12 Thread ludovic coues
Is there anything in the console ? 2016-09-12 3:46 GMT+02:00 : > def contact(request): > error = [] > if request.method == 'POST': > if not request.POST.get('subject', ''): > error.append("please enter a subject") > if not request.POST.get('message',''): > error.append("please enter a message") >

create connection error

2016-09-12 Thread miaoxu99999
def contact(request): error = [] if request.method == 'POST': if not request.POST.get('subject', ''): error.append("please enter a subject") if not request.POST.get('message',''): error.append("please enter a message") if request.POST.get('email') and "@" not in request.POST["email"]: error.append(