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")
>
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(
2 matches
Mail list logo