First time here? Check out the FAQ!

jerry_gzy's profile - activity

2017-07-12 11:02:56 -0500 received badge Notable Question (source)
2017-07-12 11:02:56 -0500 received badge Popular Question (source)
2014-05-16 16:58:58 -0500 received badge Taxonomist
2013-12-05 07:55:15 -0500 marked best answer How do I change language to modified chinese

hi, I have modified my django.po file to suit my needs.

the file I changed is site-packages/askbot/locale/zh_CN/LC_MESSAGES/django.po

but I did not see any change after I restarted the server.

2013-10-10 09:24:36 -0500 received badge Notable Question (source)
2013-01-07 04:47:03 -0500 received badge Scholar ( source )
2013-01-07 04:46:07 -0500 received badge Notable Question (source)
2013-01-06 09:07:12 -0500 received badge Popular Question (source)
2013-01-06 09:03:34 -0500 received badge Famous Question (source)
2013-01-06 08:22:09 -0500 answered a question askbot gunicorn 404 error

i am not so sure this is the answer, but give it a try

there is a stackoverflow post regarding gunicorn serving statics

http://stackoverflow.com/questions/10862259/can-django-run-on-gunicorn-alone-no-apache-or-nginx

it says:

urlpatterns = patterns('',
# ... the rest of your URLconf goes here ...
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

and the askbot code says

10 
11 urlpatterns = patterns('',
12     (r'%s' % settings.ASKBOT_URL, include('askbot.urls')),
13     (r'^admin/', include(admin.site.urls)),
14     #(r'^cache/', include('keyedcache.urls')), - broken views disable for now
15     (r'^settings/', include('askbot.deps.livesettings.urls')),16     (r'^followit/', include('followit.urls')),
17     (r'^robots.txt$', include('robots.urls')),
18     url( # TODO: replace with django.conf.urls.static ?
19         r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
20         'django.views.static.serve',
21         {'document_root': settings.MEDIA_ROOT.replace('\\','/')},
22     ),
23 ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
24

I am not a develper of askbot but the TODO there looks like some thing related. please let me know if my guess is on the spot, thx.

2013-01-06 03:16:07 -0500 asked a question askbot gunicorn 404 error

INSTALLED_APPS = ( ... "gunicorn", )

then run

python manage.py run_gunicorn

error as follows

 >python manage.py run_gunicorn 0.0.0.0:8000

2013-01-06 06:25:06 [16815] [INFO] Starting gunicorn 0.17.1
2013-01-06 06:25:06 [16815] [INFO] Listening at: http://0.0.0.0:8000 (16815)
2013-01-06 06:25:06 [16815] [INFO] Using worker: sync
2013-01-06 06:25:06 [16820] [INFO] Booting worker with pid: 16820
WARNING!!! You are using a 'locmem' (local memory) caching backend,
which is OK for a low volume site running on a single-process server.
For a multi-process configuration it is neccessary to have a production
cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently
see outdated content on your site.

/home/ubuntu/.virtualenvs/web/local/lib/python2.7/site-packages/coffin/common.py:73: UserWarning: Cannot translate loader: askbot.skins.loaders.Loader
  warnings.warn('Cannot translate loader: %s' % loader)
2012-09-25 07:12:57 -0500 received badge Famous Question (source)
2012-09-17 09:32:19 -0500 received badge Popular Question (source)
2012-08-18 01:17:45 -0500 commented question how to organize large amount of tags ?

@todofixthis thx! yes, buy reading those questions I think a tag set will be most interesting.

2012-08-17 07:00:10 -0500 asked a question how to organize large amount of tags ?

Or is there a way for user to add a set of tags in one go to subscribe what they are interested?

2012-08-04 21:30:57 -0500 commented question deleted question still show in list

btw, I have set the nginx error page to a custom page, but it's not showing somehow, what would be a correct step to setup custom 404, 502 error page?

2012-08-04 21:26:42 -0500 commented question deleted question still show in list

yes, it does appear for non-admin user and non-login guest.

2012-08-01 09:32:30 -0500 asked a question deleted question still show in list

it appears I have gone in to a corner case where a question page link is 502 Bad Gateway but still appear in the question list, is there a way to remove it?

[Update] ok, after reboot, the 502 Bad Gateway is gone, and now have a 404 error, it'll be good if we can delete the question from the list if it has a 404 error.

[Update] this problem is now fixed, solution is to del the post in django admin panel.

2012-08-01 09:26:25 -0500 received badge Famous Question (source)
2012-07-12 05:38:36 -0500 received badge Famous Question (source)
2012-05-21 19:28:58 -0500 received badge Popular Question (source)
2012-03-19 11:50:38 -0500 commented answer How to upgrade to 0.7.40 ?

cool, thank you for the effort, so is the code on git hub 0.7.40 already?

2012-03-18 19:46:58 -0500 asked a question How to upgrade to 0.7.40 ?

I have tried pip install askbot --upgrade but it's still showing it's 0.7.39

how can I check the version of askbot?

2012-02-20 01:08:21 -0500 received badge Teacher ( source )
2012-02-20 01:08:21 -0500 received badge Self-Learner ( source )
2012-02-19 20:08:05 -0500 commented answer cannot signup when language locale is zh_CN

do you have a skype or gtalk?

2012-02-18 10:36:46 -0500 commented answer cannot signup when language locale is zh_CN

yes, I eventually fix the the signup issue, but the image upload for IE and Firefox is still missing.

2012-02-12 17:07:00 -0500 commented answer IE, firefox can not upload image

this site also got the problem (when try to upload by firefox)

2012-02-11 20:13:32 -0500 received badge Commentator
2012-02-11 20:13:32 -0500 commented question IE, firefox can not upload image

well, for this site I don't have enough karma, so I am not sure, but the image I posted via URL is the error from my local site.

2012-02-11 16:40:53 -0500 answered a question IE, firefox can not upload image

this what I get when try to upload image from firefox.

image description

this site also got the problem (when try to upload by firefox)

image description

2012-02-11 16:21:40 -0500 commented question IE, firefox can not upload image

hi, @Evgeny , thanks for help, when I try to upload an image locally, I got this TypeError: data is undefined message.

2012-02-10 15:26:21 -0500 received badge Supporter ( source )
2012-02-09 07:55:29 -0500 asked a question IE, firefox can not upload image

anyone know what's the problem?

2012-01-23 20:07:28 -0500 received badge Student (source)