Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8211325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:23:31+00:00 2026-06-07T10:23:31+00:00

I am building a web based application, in which i need to send the

  • 0

I am building a web based application, in which i need to send the notification to registered user by E-mail after updating or modifying some value in tables.

I have a model.py:

class ProileComment(models.Model):
    comment = models.TextField()
    user = models.CharField(max_length=30, null=False, blank=True)
    timestamp = models.DateTimeField(null=False, blank=True)

Method in views.py

def send_email(request):
   ##

According to my problem if ProfileComment model will update then it should automatically called the send_email method. So that user will get the notification about the changes in database. How should i proceed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:23:32+00:00Added an answer on June 7, 2026 at 10:23 am

    You can use django signals!!

    https://docs.djangoproject.com/en/dev/ref/signals/

    They allow you to register a signal listener. perhaps pre_save signal would best suite your needs? Whenever something is saved anywhere in your app your signal will be called, and you can make a decision based on the model or whatever other conditions you need.

    Or if you only want to send_email for that one model only you could override the save method!

    class ProfileComment(models.Model):
    
    
        def save(self, *args, **kwargs):
          # send email?
          super(ProfileComent, self, *args, **kwargs) # make sure to call parent!
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a web based application to determine a value, which consists the calculation
I'm building an ASP .NET 2.0 (C#) based web application, which is primarily intended
I'm building Pylons-based web application with RESTful API, which currently lacks any authentication. So
Currently, I am building an web based application which is expected to receive a
I'm building a web-based productivity application that has to deal with modest user concurrency,
I'm building an ajax based web application which lets Facebook users who login to
I am building a web application which will generate XML from a database based
I am building a PHP comet based application. Which web server should I use
I am building a web-based application. The frontend has been designed in Sproutcore. For
I'm building a simple web based forum application. I want to allow users to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.