Hi, First of all - are you sure that the form is valid? You don't show the ContactUs model, but I'm guessing that all fields are required? Are they all filled in? Second - in the contact method you first check if it is a POST and then populate with: form = ContactUsForm(request.POST or None). The "or None" part won't do anything - it will never be called. Finally - if the form ISN'T valid - the user won't get any response at all? It'll just go to en empty page?
Regards, Andréas Den mån 12 nov. 2018 kl 14:31 skrev Tosin Ayoola <[email protected]>: > halo, > working on a contact us form to receive information from the user but my > issue is the data doesn't get save to the database and i'm not getting any > error message can anyone help out > below is my view an forms.py > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAHLKn70gTCa98GpXiYfm1kJqqQZHYiaYz4U39ocBCuGa4n-3Lw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAHLKn70gTCa98GpXiYfm1kJqqQZHYiaYz4U39ocBCuGa4n-3Lw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCfjemsyhhfOiDEB1oXFrPL47ixb_Vvq2624Pwv1ddBeuw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

