-
Notifications
You must be signed in to change notification settings - Fork 43
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
Problem with Apache and mod_wsgi #15
Comments
This line: Doesn't appear anywhere within longerusername. The only guess I've got is that apache's mod_wsgi is doing some weird caching of pycs and doesn't accept the monkeypatch. Given that this isn't on fire for anyone else, I'd honestly say your best bets to get this fixed are:
Apologies for not having a better answer, but I've found it's better to be honest with folks about how much time I've got to split between open source projects, and their best avenues for a fix. Best of luck, and feel free to throw comments on here as you debug / find a solution! |
Thanks skoczen. I am pretty new to all this but if i manage to find a fix I will send in a pull request. |
I had a similar problem, and commenting the |
@joaolsilva I experienced the same problem and fixed it with what you suggested. @skoczen any idea about why this is happening and how to fix it? |
@neilp9 sorry, nope. Everything I know is in the comment above. If you've got a fix though, send a pull! |
OK @skoczen. Just for reference, here's my stack trace: File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 143, in filter |
Got the same error and fixed by commenting the help text line. |
Just to confirm, same issue on gunicorn 18 and 19 and nginx, using django_gunicorn deployment which is deprecated. I will be switching to wsgi and see if the problem persists, but yes commeting out help_text does do the trick. I found this to be somewhat informative on the issue, and it does note that its a deployment issue: http://askbot.org/en/question/9594/why-askbot-works-with-runserver-but-fails-with-production-server/ |
To further confirm, I still run into this issue using gunicorn but only if I run it as a service from /etc/init/service.conf , from the command line it runs fine. By using lazy ugetttext (from django.utils.translation import ugettext_lazy as _) instead in models.py seems to fix the problem. Its odd that it runs under certain deployment routes and not others. (runserver OK, gunicorn in command line OK, gunicorn as a service FAIL) |
Closing this up, since the supported solution is to use the more maintained fork https://github.com/madssj/django-longer-username-and-email, or Django 1.5+'s custom user models. Thanks! |
I just experienced the same problem as http://django-irc-logs.com/2012/sep/30/#747079
This happens only on apache with mod_wsgi. Every second or third time I refresh the page, I get a 500 error: from django.contrib.admin import ModelAdmin, actions; ImportError: cannot import name actions;
This problem disappears when I remove longerusername from my installed apps.
The text was updated successfully, but these errors were encountered: