First time here? Check out the FAQ!

Michael's profile - activity

2018-05-21 19:31:45 -0500 received badge Notable Question (source)
2015-04-27 02:09:22 -0500 received badge Supporter ( source )
2015-04-18 15:51:57 -0500 received badge Popular Question (source)
2014-01-02 11:20:03 -0500 received badge Necromancer ( source )
2014-01-02 11:20:03 -0500 received badge Teacher ( source )
2013-12-22 13:00:27 -0500 answered a question Error: ImportError: cannot import name readers

You can track this down by adding from askbot.views import readers to your django.wsgi and running it interactively (I tested it with django.fcgi, though).

In my case the problem was that I had set TIME_ZONE = None as the django documentation suggests. However, that does not seem to be supported by all parts of the askbot stack:

Traceback (most recent call last):
  File "./django.fcgi", line 14, in <module>
    from askbot.views import readers
  File "/usr/local/lib/python2.7/dist-packages/askbot/views/__init__.py", line 5, in <module>  
    from askbot.views import writers
  File "/usr/local/lib/python2.7/dist-packages/askbot/views/writers.py", line 46, in <module>
    from askbot.templatetags import extra_filters_jinja as template_filters
  File "/usr/local/lib/python2.7/dist-packages/askbot/templatetags/extra_filters_jinja.py", line 35, in <module>
    django_settings.TIME_ZONE
  File "/usr/local/lib/python2.7/dist-packages/pytz/__init__.py", line 162, in timezone
    if zone.upper() == 'UTC':

After setting TIME_ZONE = 'UTC', it worked.

2013-11-05 13:40:59 -0500 received badge Famous Question (source)
2013-05-28 17:52:01 -0500 received badge Nice Question (source)
2013-05-28 16:08:03 -0500 received badge Student (source)
2013-05-28 15:03:13 -0500 asked a question How can I add <meta name="referrer" content="always"> to my askbot instance?

As explained on http://smerity.com/articles/2013/where_did_all_the_http_referrers_go.html, when running an HTTPS site, it’s a good idea to explicitly enable referrers, otherwise they are not sent to the link target.

Is this possible in askbot currently? If so, how? If not, could you add it for the next release please? Thanks!