Hi Ken, The pytz package was installed. Thanks, Markos
On Saturday, January 25, 2014 4:23:14 PM UTC+1, Kenneth Bolton wrote: > > Hi Markos, > > Within your project's Python environment, would you kindly run `pip freeze > | grep pytz`? If that returns nothing, you do not have pytz installed. A > `pip install pytz` should set you straight. > > best, > ken > > > On Sat, Jan 25, 2014 at 8:31 AM, Marko3 <[email protected] > <javascript:>>wrote: > >> I get this error on my Ubuntu 12.04 machine with mysql 5.5 after I >> imported some Wordpress content to blog_blogpost. >> >> ValueError at /admin/blog/blogpost/ >> >> Database returned an invalid value in QuerySet.dates(). Are time zone >> definitions and pytz installed? >> >> >> Request Method:GET Request >> URL:http://127.0.0.1:8000/admin/blog/blogpost/Django Version: >> 1.6.1Exception Type: ValueErrorException Value: >> >> Database returned an invalid value in QuerySet.dates(). Are time zone >> definitions and pytz installed? >> >> Exception >> Location:/home/me/.mezenv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py >> >> in results_iter, line 1107 Python >> Executable:/home/me/.mezenv/bin/pythonPython >> Version: 2.7.3Python Path: >> >> [u'/home/me', >> '/home/me/sai', >> >> '/home/me/.mezenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg', >> '/home/me/.mezenv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg', >> '/home/me/.mezenv/lib/python2.7', >> '/home/me/.mezenv/lib/python2.7/plat-linux2', >> '/home/me/.mezenv/lib/python2.7/lib-tk', >> '/home/me/.mezenv/lib/python2.7/lib-old', >> '/home/me/.mezenv/lib/python2.7/lib-dynload', >> '/usr/lib/python2.7', >> '/usr/lib/python2.7/plat-linux2', >> '/usr/lib/python2.7/lib-tk', >> '/home/me/.mezenv/local/lib/python2.7/site-packages'] >> >> Server time: Sat, 25 Jan 2014 13:44:11 +0100 >> >> >> >> Error during template rendering >> >> In template >> /home/me/.mezenv/local/lib/python2.7/site-packages/grappelli_safe/templates/admin/change_list.html, >> >> error at line *140* >> >> >> >> 140 {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} >> >> >> >> I added to my local_settings.py >> import pytz >> from pytz import * >> >> and also defined timezone in my.cnf >> >> default-time-zone = "+01:00" >> >> but I still get the error. >> >> Appreciate your help to resolve it. >> >> >> >> >> -- >> 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 [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
