New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
django 1.7 stderr exception #336
Comments
try to avoid self.validate() as suggested in https://code.djangoproject.com/ticket/23133 and celery#336
As you can see in my commit, the fix is easy. commenting the |
I can confirm with @Karmak23 - this is basically the same fix that is in the Debian package. |
Should also mention that Django 1.7 is released and considered stable; without this change django-celery is broken. |
Hmm, well we can remove it again I guess, but lots of people had problems with models being unavailable when it was disabled |
Hmmm, maybe this is a dumb suggestion, but... in commands/celery.py, why not set the missing stderr if it's not there? Worked for me. from sys import stderr Mind you, I have not thought about the ramifications of celery being run as a daemon. Would setting self.stderr to one of the logging module's functions be more appropriate in that case? |
That should work, but not the best solution if you are supposed to be able to override this with a command-line option to manage.py. It's not a problem for daemonization, because all that happens later, then again if Django 1.7 no longer requires model validation you don't have to change anything. |
Hello,
When running with Django 1.7 rc2 and Django wants to report warnings with the database model, it will generate the following error.
This problem will only happen if Django tries to report warnings, if there are no warnings, this will not occur.
As per the following ticket: https://code.djangoproject.com/ticket/23133 django-celery should not call self.validate(), that was a kludge required for earlier Django versions that now breaks Django 1.7.
Thanks
The text was updated successfully, but these errors were encountered: