For testing my form loggin, in the view index I return a dictionary. When I clicked on the submit button I receive this message error : 

```
The view accueil.views.index didn't return an HttpResponse object. It returned None instead.

```

Where I made a mistake?

```
def index(request):
formConnex = ConnexionForm()
if request.method=='POST':
    formConnex =ConnexionForm(request.POST)
    if formConnex.is_valid():
        envoi = True
        surnom = formConnex.cleaned_data['surnom']
        password = formConnex.cleaned_data['passeword']
        formConnex = ConnexionForm()   
        dicInfoCon =    {
            'surnom_key':email,
            'password_key':password,
            'envoi_key':envoi
        }

        return render(request,'accueil/index.html',dicInfoCon)
else:
    envoi = False
    formConnex = ConnexionForm() 
    return render(request, 'accueil/index.html', 'formConnex_Key':formConnex})

```