carlxaeron / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

Error on /rosetta-i18n/select/ru/0/ #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If add in settings.py:

from django.conf.global_settings import LANGUAGES
from django.utils.translation import ugettext_lazy as _
LANGUAGES = [(code, _(lang)) for code, lang in LANGUAGES]

and go to "/rosetta-i18n/select/ru/0/", I get next error:

Traceback (most recent call last):

  File "/opt/local/lib/python2.5/site-packages/django/core/servers/basehttp.py", line 277, in 
run
    self.result = application(self.environ, self.start_response)

  File "/opt/local/lib/python2.5/site-packages/django/core/servers/basehttp.py", line 631, in 
__call__
    return self.application(environ, start_response)

  File "/opt/local/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 209, in 
__call__
    response = middleware_method(request, response)

  File "/opt/local/lib/python2.5/site-packages/django/contrib/sessions/middleware.py", line 38, 
in process_response
    request.session.save()

  File "/opt/local/lib/python2.5/site-packages/django/contrib/sessions/backends/db.py", line 
45, in save
    session_data = self.encode(self._session),

  File "/opt/local/lib/python2.5/site-packages/django/contrib/sessions/backends/base.py", line 
75, in encode
    pickled = pickle.dumps(session_dict, pickle.HIGHEST_PROTOCOL)

PicklingError: Can't pickle <class 'django.utils.functional.__proxy__'>: 
attribute lookup 
django.utils.functional.__proxy__ failed

Original issue reported on code.google.com by boo...@gmail.com on 27 Jun 2008 at 2:48

GoogleCodeExporter commented 8 years ago
Hello, which version of Django are you using? 0.96, SVN?

Also, please notice there isn't a single line of Rosetta code in the traceback 
you pasted, I'm not sure I could fix 
this :/

Original comment by mbonetti on 27 Jun 2008 at 5:00

GoogleCodeExporter commented 8 years ago
Closing this for lack of feedback. Please feel free to reopen as needed.

Original comment by mbonetti on 11 Jul 2008 at 2:15