RedditPP Mascot

RedditPP

r/django • … • u/BigBoetje

Creating a contact form in a footer on every page

Hey y'all.

I've posted a similar question a while ago but since I'm a newcomer to the django scene, I wasn't too sure what I was looking for but I've since learned a lot. So my question:

I have a `base.html` template that is solely used to inherit from. This template has no corresponding view and only contains the navigation and the footer. This footer is where the issue can be found. In this footer is a contact form. When submitted, a mail needs to be sent with the information entered in the form. A `FormView` seems to be my best bet here, but I'm unsure as to how I should implement it exactly. A concrete template with a url attached to it is simple enough, but this form is included on every page that inherits the base template.

How should I do this?

— 0