Code Monkey home page Code Monkey logo

Comments (6)

SmileyChris avatar SmileyChris commented on May 12, 2024

Why don't you try django trunk and see if it fixes your problem, since that ticket is marked fixed?

from django-mailer-2.

houdinihound avatar houdinihound commented on May 12, 2024

Yep, that was 1st on my to do list this morning ;) Although it seems like that issue was fixed as of the 1.0.x series?

Anyway, ran it against latest revision (11782) - exact same error. Only difference in the traceback is the line numbers of the error in the first 2 function calls:

Traceback (most recent call last):
  File "manage.py", line 11, in 
    execute_manager(settings)
  File "c:\django-trunk\django\core\management\__init__.py", line 439, in execute_manager
    utility.execute()
  File "c:\django-trunk\django\core\management\__init__.py", line 380, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
.
.
.

The rest of the traceback is identical (barring the path to django version).

Also ran it with Python 2.5.4, against trunk and 1.1.1 - same results.

from django-mailer-2.

SmileyChris avatar SmileyChris commented on May 12, 2024

It does seem like this is a database problem. If you can muck around with the database, here's a test:

My guess is that it's failing trying to update the datetimefield "deferred" on the QueuedMessage model.

From a shell, try QueuedMessage.objects.update(deferred=None)
If that fails, ensure that your deferred column of the database is nullable (the model definition says it should be).

from django-mailer-2.

houdinihound avatar houdinihound commented on May 12, 2024

Ok, so in the shell, QueuedMessage.objects.update(deferred=None) works (returns the # of records updated).

The db field 'deferred' is nullable and is of type "timestamp with time zone".

Tested the above in both environments, works in both.

from django-mailer-2.

houdinihound avatar houdinihound commented on May 12, 2024

Resolved. I was running an older version of django-mailer-2 (files were stamped Sep 10) and noticed the latest files have a stamp of Sep 24 and the comment
"Change the retry_deferred management command to output result when on
normal verbosity level." which is why I didn't update sooner :(

Suggestion: Perhaps a version or changes file in the directory?

Anyway, downloaded the latest version of django-mailer-2 and it now works in both environments.

I apologise for wasting your time on this and thank you for your help.

Regards,
Joe

from django-mailer-2.

SmileyChris avatar SmileyChris commented on May 12, 2024

Glad you got it resolved. Yeah, I should start a todo. It's a common question for what the difference between this and the original mailer is.

from django-mailer-2.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.