First time here? Check out the FAQ!

johnli's profile - activity

2018-03-02 11:01:22 -0500 received badge Famous Question (source)
2018-03-02 11:01:22 -0500 received badge Notable Question (source)
2018-03-02 11:01:22 -0500 received badge Popular Question (source)
2015-03-22 19:03:58 -0500 received badge Notable Question (source)
2015-03-03 06:02:15 -0500 received badge Popular Question (source)
2015-03-03 06:02:15 -0500 received badge Famous Question (source)
2014-12-31 13:17:11 -0500 asked a question livesearch is not working when Group is activated

For latest version, When "Enable user groups" is set to True, livesearch is not functioning. Any idea why?

2014-11-29 16:19:15 -0500 received badge Teacher ( source )
2014-11-29 16:19:15 -0500 received badge Self-Learner ( source )
2014-11-25 23:54:14 -0500 received badge Enthusiast
2014-11-23 21:40:37 -0500 received badge Editor ( source )
2014-11-23 21:40:05 -0500 answered a question 'AnonymousUser' object has no attribute 'get_groups'
 #  if user and askbot_settings.GROUP_ENABLED: (askbot/models/question.py line 745)
 #  this line throws 'AnonymousUser' object has no attribute 'get_groups' exception for AnonymousUser. See fix below.
 # user passed to this function could be actual user object, Anonymous user which doesnt have get_group(), or None

  if user and askbot_settings.GROUPS_ENABLED:
        if user.is_authenticated():
        #get post with groups shared with having at least 
        #one of the user groups
        #of those posts return the latest revision
            posts_filter['groups__in'] = user.get_groups()
2014-11-22 00:31:06 -0500 asked a question 'AnonymousUser' object has no attribute 'get_groups'

After enable user group, for anonymous user, it throws error below. Any idea?

askbot/models/question.py in get_latest_revision

posts_filter['groups__in'] = user.get_groups()

2014-11-21 09:37:43 -0500 answered a question embedded video is not working

it actually works by just pasting the url to the content area. However, youtube is using https://, so in order to let it work property, it needs to be changed to http://

2014-11-20 22:25:07 -0500 asked a question embedded video is not working

Followed the documentation. downloaded forked version markdown2, but it doesnt seem to work. any idea?

2014-11-20 22:01:13 -0500 commented answer Posting/uploading a video in an answer

i installed the forked version of markdown2, but it doesnt seem to do the trick. am i just pasting the url directly?

2014-11-20 21:54:24 -0500 commented question Admin/media missing

I think it is more or less a django installation problem. you are not using a virtualenv? try to install everything in a virtualenv, or pip unistall django, and pip install django again.

2014-11-16 18:16:44 -0500 commented answer CommandError: Please create a superuser to continue

for some reason, syncdb doesnt create site object in database, so i manually create one from shell, and solve the site matching query issue.

2014-11-16 18:15:38 -0500 received badge Scholar ( source )
2014-11-16 16:51:28 -0500 commented answer CommandError: Please create a superuser to continue

Hi Evgeny, Thanks for your help. I actually used "python manage.py add_admin 1" to fix the issue per your documentation. Now, I have another issue. It seems that I cant get into settings page. it throws "DoesNotExist at /settings/MIN_REP/ Site matching query does not exist." I do have site_id = 1 and django sites app included in installed app. Any idea?

2014-11-16 16:00:30 -0500 asked a question CommandError: Please create a superuser to continue

Hi,

I followed along the documentation, and when i tried to do db migrations, it throws error "CommandError: Please create a superuser to continue". I am using django 1.5.7 and postgresql. I do have a superuser created when i run syncdb. Any idea?

Running migrations for askbot:

- Migrating forwards to 0179_sanitize_user_info_html.

askbot:0133_apply_global_group_to_posts_and_users Error in migration: askbot:0133_apply_global_group_to_posts_and_users CommandError: Please create a superuser to continue