Send email to gmail after user fill up contact form and getting django database updat - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Send email to gmail after user fill up contact form and getting django database updat (/thread-23906.html) |
Send email to gmail after user fill up contact form and getting django database updat - Man_from_India - Jan-22-2020 I created a django app where inside an HTML file I created a contact form. And when any user fill up the form and press submit button, django database is updated. Now my problem is I want to create another .py file where I want to fetch data from django database and create some python code and send the fetched data to gmail. Now my question is 1. How to fetch data from django database? 2. And where to keep .py file where the code which sends email to gmail. And how that .py file is automatically fired. |