Django-jython problem when rendering admin user detail template
Diego Muñoz <[email protected]>
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <CAKXeoq6ryd4P8=oTy+LC+jBF4PTcUOd_Z3WZLOqOepyaF7Eb0w@mail.gmail.com> |
Hi everyone, I recently created a Django 1.8.6 project in Jython, and installed django-jython 1.8.0b3. I am successfully using the SQLite JDBC and created a database in which I created a super user with "jython manage.py createsuperuser". In the localhost:8000/admin/ page I can successfully login and create users, but when I try to edit details about a User, I get an error: 'unicode' object has no attribute 'tzinfo'. If I change my settings.py file with USE_TZ = False, I get another error: 'unicode' object has no attribute 'date'. I would greatly appreciate any help. The exception I get for each case is: *1. 'unicode' object has no attribute 'tzinfo':* AttributeError at /admin/auth/user/1/ 'unicode' object has no attribute 'tzinfo' Request Method: GET Request URL: http://localhost:8000/admin/auth/user/1/ Django Version: 1.8.6 Exception Type: AttributeError Exception Value: 'unicode' object has no attribute 'tzinfo' Exception Location: /home/dmunoz/jsnmp/Lib/site-packages/django/utils/timezone.py in is_aware, line 337 Python Executable: /home/dmunoz/jsnmp/bin/jython Python Version: 2.7.0 Python Path: ['/home/dmunoz/snmp/webswitcher', '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', '/home/dmunoz/jsnmp/Lib/site-packages', '/home/dmunoz/jsnmp/Lib', '/home/dmunoz/opt/jython2.7.0/Lib', '__classpath__', '__pyclasspath__/'] Server time: Tue, 10 Nov 2015 12:31:09 -0300 Error during template rendering In template /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19 *2. 'unicode' object has no attribute 'date':* AttributeError at /admin/auth/user/1/ 'unicode' object has no attribute 'date' Request Method: GET Request URL: http://localhost:8000/admin/auth/user/1/ Django Version: 1.8.6 Exception Type: AttributeError Exception Value: 'unicode' object has no attribute 'date' Exception Location: /home/dmunoz/jsnmp/Lib/site-packages/django/forms/widgets.py in decompress, line 888 Python Executable: /home/dmunoz/jsnmp/bin/jython Python Version: 2.7.0 Python Path: ['/home/dmunoz/snmp/webswitcher', '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', '/home/dmunoz/jsnmp/Lib/site-packages', '/home/dmunoz/jsnmp/Lib', '/home/dmunoz/opt/jython2.7.0/Lib', '__classpath__', '__pyclasspath__/'] Server time: Tue, 10 Nov 2015 12:28:18 -0300 Error during template rendering In template /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19 Regards, Diego ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jython-users