I\'m trying to make a form get information from the user and use this information to send a email. Here\'s my code:
#forms.py from django import forms class Con
The only issue you have is you did not declare ContactForm as function, change FROM this;
def contato(request): form_class = ContactForm if request.method == 'POST':
TO; def contato(request): form_class = ContactForm() if request.method == 'POST':