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 8889603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:18:05+00:00 2026-06-14T22:18:05+00:00

In my django application I am using django-notification to send notifications. However I noticed

  • 0

In my django application I am using django-notification to send notifications. However I noticed that in some cases (when sending multiple notifications) my web application is giving delayed responses. Although I am sending notifications through Ajax requests, I still think it would be best if I could implement mailtools library which provide threaded emails.

Has anyone implemented such a thing? Is it easy? How can I use ThreadedMailer from mailtools in django-notification?

or, is there another alternative?

  • 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-14T22:18:06+00:00Added an answer on June 14, 2026 at 10:18 pm

    Use Celery for this purpose. It’s easy to setup with django and you can use the code you’re using right now.

    The ajax request puts the email into task queue and returns. You could return your task id if you want to check later if the task succeeded.

    Update:

    Celery only enables you to call your functions in backgound. Say in ajax view you called:

    send_email(…)
    

    Now in tasks.py you should define function:

    @task
    def send_email(…)
    

    And in the view you will call it by:

    send_email.delay(…)
    

    And that’s it. The email will be sent by background worker deamon using your existing python code.

    This doesn’t make django-notification obsolete. Celery does completly different thing and can be used with any lib you can imagine.

    The only change is task arguments have to be pickable. It means you have to pass db ids, not whole objects, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was merrily developing a web application using the Django development version. After some
I have a django application using multiple databases. Given an instance of a model,
I am using jinja2 with my django application, I am working on porting some
I'm planning a web application using Django, and it's based on a big pile
I'm writing a Django application that is using pip & virtualenv to manage its
I am developing a web application using django, postgreSQL, html5 and javascript. The application
I am working on building a web-application using Django. Since I'm new to working
I'm using a django application which does some 'startswith' ORM operations comparing longtext columns
I'm using Capistrano to deploy a Django application (it uses Nginx as the web
I have a django application using mod_python, fairly typical configuration except that media files

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.