Python Forum
Send email to gmail after user fill up contact form and getting django database updat
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send email to gmail after user fill up contact form and getting django database updat
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Django: encrypt user password by mean Admin site aecordoba 4 50 Apr-20-2026, 11:50 PM
Last Post: aecordoba
  Django: View is unable to find attributes of database model pythonpaul32 1 2,018 May-20-2024, 05:38 AM
Last Post: tahirahmedd
  Webscrape using RPi and SQlite database, always write the last value in database Armond 0 1,544 Jul-19-2023, 09:11 PM
Last Post: Armond
  Gmail API - Error 400: redirect_uri_mismatch Depp 1 2,756 Jun-12-2022, 10:42 AM
Last Post: snippsat
  Knowing User's Connection Type in Django Dexty 2 2,822 Apr-27-2022, 11:54 AM
Last Post: Dexty
  Save JSON data to sqlite database on Django Quin 0 4,521 Mar-26-2022, 06:22 PM
Last Post: Quin
  register the user as staff member - django rwahdan 0 2,449 Dec-24-2021, 03:08 PM
Last Post: rwahdan
  find a hyperlink in Gmail body python 3(imap and selenium) taomihiranga 1 9,994 Dec-30-2020, 05:31 PM
Last Post: Gamer1057
  Not able to sign into gmail using selenium Leo_Red 4 10,528 Nov-19-2020, 05:03 AM
Last Post: Leo_Red
  Django send email - email form Remek953 2 3,807 Sep-18-2020, 07:07 AM
Last Post: Remek953

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020