[mezzanine-users] global name 'pytz' is not defined
Hi, I am looking for the fix to the error below. I already tried adding to /cartridge/shop/admin.py: import pytz from django.utils import timezone from django.utils.timezone import utc Also having same error at /admin/blog/blogpost/ Thanks, Ken --- NameError at /admin/shop/product/ global name 'pytz' is not defined Django Version: 1.6.5 Exception Value: global name 'pytz' is not defined Exception Location: /myprojects/EnvProVM3/lib/python2.7/site-packages/django_pyodbc/operations.py in _switch_tz_offset_sql, line 74 Python Executable: /myprojects/EnvProVM3/bin/python Python Version: 2.7.5 Error during template rendering In template /home/10019751/myprojects/EnvProVM3/lib/python2.7/site-packages/grappelli_safe/templates/admin/change_list.html, error at line *140* /home/10019751/myprojects/EnvProVM3/lib/python2.7/site-packages/django_pyodbc/operations.py in _switch_tz_offset_sql if pytz is None: -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] global name 'pytz' is not defined
Looks like a bug recently fixed in django_pyodbc: https://github.com/lionheart/django-pyodbc/commit/df70c8f53f4f01803cb4c4e56e662138a5594b3c You probably don't have that fix. On Sat, Jun 28, 2014 at 6:01 AM, nin...@gmail.com wrote: Hi, I am looking for the fix to the error below. I already tried adding to /cartridge/shop/admin.py: import pytz from django.utils import timezone from django.utils.timezone import utc Also having same error at /admin/blog/blogpost/ Thanks, Ken --- NameError at /admin/shop/product/ global name 'pytz' is not defined Django Version: 1.6.5 Exception Value: global name 'pytz' is not defined Exception Location: /myprojects/EnvProVM3/lib/python2.7/site-packages/django_pyodbc/operations.py in _switch_tz_offset_sql, line 74 Python Executable: /myprojects/EnvProVM3/bin/python Python Version: 2.7.5 Error during template rendering In template /home/10019751/myprojects/EnvProVM3/lib/python2.7/site-packages/grappelli_safe/templates/admin/change_list.html, error at line *140* /home/10019751/myprojects/EnvProVM3/lib/python2.7/site-packages/django_pyodbc/operations.py in _switch_tz_offset_sql if pytz is None: -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] global name 'pytz' is not defined
Thanks Stephen, that is the fix I need. On Friday, June 27, 2014 4:12:39 PM UTC-5, Stephen McDonald wrote: Looks like a bug recently fixed in django_pyodbc: https://github.com/lionheart/django-pyodbc/commit/df70c8f53f4f01803cb4c4e56e662138a5594b3c You probably don't have that fix. On Sat, Jun 28, 2014 at 6:01 AM, nin...@gmail.com javascript: wrote: Hi, I am looking for the fix to the error below. I already tried adding to /cartridge/shop/admin.py: import pytz from django.utils import timezone from django.utils.timezone import utc Also having same error at /admin/blog/blogpost/ Thanks, Ken --- NameError at /admin/shop/product/ global name 'pytz' is not defined Django Version: 1.6.5 Exception Value: global name 'pytz' is not defined Exception Location: /myprojects/EnvProVM3/lib/python2.7/site-packages/django_pyodbc/operations.py in _switch_tz_offset_sql, line 74 Python Executable: /myprojects/EnvProVM3/bin/python Python Version: 2.7.5 Error during template rendering In template /home/10019751/myprojects/EnvProVM3/lib/python2.7/site-packages/grappelli_safe/templates/admin/change_list.html, error at line *140* /home/10019751/myprojects/EnvProVM3/lib/python2.7/site-packages/django_pyodbc/operations.py in _switch_tz_offset_sql if pytz is None: -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.