Changes between Version 1 and Version 2 of Ticket #24161, comment 3


Ignore:
Timestamp:
Jan 16, 2015, 2:30:42 PM (10 years ago)
Author:
James Beith

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24161, comment 3

    v1 v2  
    22> Thanks for the example project. Could you also provide the full traceback please.
    33
    4 http://dpaste.com/3JNZ2YR
     4{{{
     5Environment:
     6
     7
     8Request Method: POST
     9Request URL: http://127.0.0.1:8000/login/?next=/
     10
     11Django Version: 1.8
     12Python Version: 3.4.2
     13Installed Applications:
     14('django.contrib.auth',
     15 'django.contrib.contenttypes',
     16 'django.contrib.sessions',
     17 'django.contrib.messages',
     18 'django.contrib.staticfiles',
     19 'myapp')
     20Installed Middleware:
     21('django.contrib.sessions.middleware.SessionMiddleware',
     22 'django.middleware.common.CommonMiddleware',
     23 'django.middleware.csrf.CsrfViewMiddleware',
     24 'django.contrib.auth.middleware.AuthenticationMiddleware',
     25 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
     26 'django.contrib.messages.middleware.MessageMiddleware',
     27 'django.middleware.clickjacking.XFrameOptionsMiddleware',
     28 'django.middleware.security.SecurityMiddleware')
     29
     30
     31Traceback:
     32File "/Users/James/.virtualenvs/uuid-user/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
     33  222.                 response = middleware_method(request, response)
     34File "/Users/James/.virtualenvs/uuid-user/lib/python3.4/site-packages/django/contrib/sessions/middleware.py" in process_response
     35  49.                         request.session.save()
     36File "/Users/James/.virtualenvs/uuid-user/lib/python3.4/site-packages/django/contrib/sessions/backends/db.py" in save
     37  58.             session_data=self.encode(self._get_session(no_load=must_create)),
     38File "/Users/James/.virtualenvs/uuid-user/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py" in encode
     39  89.         serialized = self.serializer().dumps(session_dict)
     40File "/Users/James/.virtualenvs/uuid-user/lib/python3.4/site-packages/django/core/signing.py" in dumps
     41  90.         return json.dumps(obj, separators=(',', ':')).encode('latin-1')
     42File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/__init__.py" in dumps
     43  237.         **kw).encode(obj)
     44File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/encoder.py" in encode
     45  192.         chunks = self.iterencode(o, _one_shot=True)
     46File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/encoder.py" in iterencode
     47  250.         return _iterencode(o, 0)
     48File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/encoder.py" in default
     49  173.         raise TypeError(repr(o) + " is not JSON serializable")
     50
     51Exception Type: TypeError at /login/
     52Exception Value: UUID('314cb5d6-593f-48f5-b1af-fadedde123d3') is not JSON serializable
     53}}}
Back to Top