We are running nginx for static files and apache + mod_wsgi for the django website.
Regards, Andréas 2013/8/21 Mauro Rocco <fireantol...@gmail.com> > Hi, > That's strange. > To me looks like the server from time to time can not access this files as > you said. > What you use in production Apache/ModWSGI ? > > Regards > > > On Wednesday, August 21, 2013 2:57:51 PM UTC+2, Andréas Kühne wrote: >> >> Hi, >> >> I am working on a website that is available in 10 different languages, >> and we have the translations working. If you want to see our website in >> french, you just add /fr to our url and it works fine. >> >> However we are getting a lot of : >> >> File "middleware.py", line 83, in process_request >> translation.activate(request.l**ocale_dict['language']) >> >> File >> "env/lib/python2.6/site-**packages/django/utils/**translation/__init__.py", >> line 90, in activate >> return _trans.activate(language) >> >> File >> "env/lib/python2.6/site-**packages/django/utils/**translation/trans_real.py", >> line 183, in activate >> _active.value = translation(language) >> >> File >> "env/lib/python2.6/site-**packages/django/utils/**translation/trans_real.py", >> line 173, in translation >> current_translation = _fetch(language, fallback=default_translation) >> >> File >> "env/lib/python2.6/site-**packages/django/utils/**translation/trans_real.py", >> line 141, in _fetch >> res._info = res._info.copy() >> >> AttributeError: 'NoneType' object has no attribute '_info' >> >> These errors mostly occur when the user requests an ajax enabled update. >> As far as I can tell this error is related to the fact that django >> tranlsations can't open the .mo files for the specific locale. What I don't >> understand is that this happens maybe once every 2 days, so it doesn't >> happen all the time. >> >> The only resources I have found on the subject are regarding to >> completely missing .mo translation files (which is not the case here). I am >> leaning towards an issue with apache not being able to open the file, >> because of restrictions on the number of open files allowed, but I'm not >> sure. Has anyone any ideas on how to correct this issue? I should also say >> that it has never happened on our development machines. >> >> Regards, >> >> Andréas >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.