timewasted's profile - activity
2 years ago | received badge | Popular Question (source) |
2 years ago | received badge | Notable Question (source) |
3 years ago | received badge | Notable Question (source) |
9 years ago | received badge | Notable Question (source) |
9 years ago | received badge | Popular Question (source) |
10 years ago | asked a question | Is there a way to rebuild the search text index? I'm potentially way off base here since I am not sure how askbot handles searching. I'm using it for an internal knowledge base and things have been pretty good for a while, but recently we noticed that text searches don't always return good results. Is there a search text indexing job that runs or something that I need to do to refresh that? |
11 years ago | received badge | Popular Question (source) |
11 years ago | received badge | Famous Question (source) |
12 years ago | received badge | Famous Question (source) |
12 years ago | received badge | Famous Question (source) |
13 years ago | received badge | Nice Answer ( source ) |
13 years ago | answered a question | Can we have a feed of just unanswered questions? I just sent a pull request for this change. My commit log is here: https://github.com/markfreeman/askbot-devel/commit/46254dfb6be89280cc48fa69970cfaf7e78ca201 |
13 years ago | received badge | Scholar ( source ) |
13 years ago | received badge | Self-Learner ( source ) |
13 years ago | answered a question | Error uploading images into post I should have waited 5 more minutes before posting. It was a perms issue. I didn't realize that askbot itself logs to the project_folder/log directory. It was using a folder I didn't expect for uploads. I corrected permissions on that and all is well. |
13 years ago | asked a question | Error uploading images into post Forgive me for what is probably a simple question/solution, but I am unable to upload images into post. A javascript popup comes up and I choose the local file. Then I get a message "Error uploading file. Please contact the system administrator." I have no idea what to look at to address this. I turned on debug mode and there are no errors. I looked in my apache logs and see no errors. My settings has this for images. I created the directory and chmod'ed it to 775. #UPLOAD SETTINGS
FILE_UPLOAD_TEMP_DIR = os.path.join(
os.path.dirname(__file__),
'tmp'
).replace('\\','/')
FILE_UPLOAD_HANDLERS = (
'django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler',
)
ASKBOT_ALLOWED_UPLOAD_FILE_TYPES = ('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.tiff')
ASKBOT_MAX_UPLOAD_FILE_SIZE = 1024 * 1024 #result in bytes
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
FILE_UPLOAD_TEMP_DIR translates to: >>> from django.conf import settings
>>> settings.FILE_UPLOAD_TEMP_DIR
'/home/lmeadm/Sites/askbot-site/../askbot-site/tmp'
>>>
And my directory with perms: drwxrwxr-x 2 lmeadm lmeadm 4096 2012-04-17 11:10 tmp
I don't see any other file/upload related settings. |
13 years ago | received badge | Supporter |
13 years ago | received badge | Self-Learner ( source ) |
13 years ago | received badge | Teacher ( source ) |
13 years ago | received badge | Nice Question (source) |
13 years ago | received badge | Student (source) |
13 years ago | answered a question | ldap login works during initial login/registration, but fails to recognize existing user if relogging in. I was able to figure this out. in askbot/deps/django_authopenid/backends.py, I had to add a line to bind to the server (our server requires authentication prior to being able to search the tree). 32 user_filter = "({0}={1})".format(askbot_settings.LDAP_USERID_FIELD,
33 username)
34
35 # Attempt at doing a simple bind to the ldap server
36 # This is needed before being alllowed to search the ldap tree
37 ldap_session.simple_bind_s("full_path_to_admin_user", "password")
38
39 # search ldap directory for user
40 res = ldap_session.search_s(askbot_settings.LDAP_BASEDN, ldap.SCOPE_SUBTREE, user_filter, None)
|
13 years ago | asked a question | ldap login works during initial login/registration, but fails to recognize existing user if relogging in. I'm setting up a new install of askbot and have everything working, with the exception of ldap. I can log into the system and it correctly authenticates against my ldap server, creating the user account. The problem comes in with logging out of the system. When you go to log back in, it is as if askbot doesn't recognize that the user is already registered in askbot. if you attempt to put your display name and email address back in, you get a duplicate key error. |
13 years ago | commented answer | getting error while searching for questions from home page Thank you very, very much. That seems to have done the trick. |
13 years ago | commented answer | getting error while searching for questions from home page Thank you. I will try this when I am back in the office on Monday and post back my results. |
13 years ago | received badge | Editor (source) |
13 years ago | asked a question | getting error while searching for questions from home page I am evaluating askbot for use in an internal Q&A site for my team. I've got everything installed thought I was pretty much there until this. I am running django 1.3.1 and postgres 9.1.3. At first I got migration errors with ./manage.py migrate askbot. thank to http://askbot.org/en/question/6902/error-while-setting-up-askbot, I was able to get past those errors by running; python manage.py syncdb --all
python manage.py migrate --all --fake
I can now sign in and ask questions. The problem is with searching for questions. I get this message (after putting django in debug mode). Any help getting past this is much appreciated. Here's the error: DatabaseError at /questions/scope:all/sort:relevance-desc/query:ascii/author:1/page:1/
column askbot_thread.text_search_vector does not exist
LINE 1: ...estion' AND "askbot_post"."deleted" = false AND askbot_thr...
^
Request Method: GET
Request URL: http://127.0.0.1:8000/questions/scope:all/sort:relevance-desc/query:ascii/author:1/page:1/
Django Version: 1.3.1
Exception Type: DatabaseError
Exception Value:
column askbot_thread.text_search_vector does not exist
LINE 1: ...estion' AND "askbot_post"."deleted" = false AND askbot_thr...
^
Exception Location: /usr/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py in execute, line 44
Python Executable: /usr/bin/python
Python Version: 2.7.2
Python Path:
['/home/markf/Programs/askbot_site',
'/usr/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/distribute-0.6.25-py2.7.egg',
'/usr/lib/python2.7/site-packages/askbot-0.7.40-py2.7.egg',
'/usr/lib/python2.7/site-packages/lamson-1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/html5lib-0.90-py2.7.egg',
'/usr/lib/python2.7/site-packages/python_daemon-1.6-py2.7.egg',
'/usr/lib/python2.7/site-packages/mock-1.0.0alpha1-py2.7.egg',
'/usr/lib/python2.7/site-packages/lockfile-0.9.1-py2.7.egg',
'/usr/lib/python27.zip',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/PIL',
'/usr/lib/python2.7/site-packages/gst-0.10',
'/usr/lib/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode',
'/usr/lib/python2.7/site-packages/askbot-0.7.40-py2.7.egg/askbot/deps']
Server time: Fri, 6 Apr 2012 12:44:55 -0500
|