make sure pytz works:

$ python manage.py shell
>>> import pytz


On Fri, Jun 27, 2014 at 5:00 PM, <nin...@gmail.com> wrote:

> I am running in virtualenv and pytz installed and on pip freeze list.
>
>
> On Friday, June 27, 2014 3:48:18 PM UTC-5, Josh Cartmell wrote:
>
>> I would guess that running:
>> pip install pytz
>>
>> will fix your problem.
>>
>>
>> On Fri, Jun 27, 2014 at 4:01 PM, <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-use...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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.
>

-- 
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.

Reply via email to