I had installed askbot just according to seanf and it was running smoothly but it have some little error for which askbot team gave these instructions to me http://askbot.org/en/question/7031/some-problems-after-installation?answer=7035#answer-container-7035 now I don't know anything about python servers etc please tell me what steps should I do for. this instruction ""2) Some of the problems - need to refresh the page many times is due to incorrect setup of cache. For multiprocess web-app setup (typical) you should use shared instance of cache - such as memcached or redis cache."" asked 10 Apr '12, 13:51 Pramvir Rath... |
If you need to set up memcached, instructions are in our documentation: answered 10 Apr '12, 19:37 seanf I m new to django and python, I try to follow these instructions. On the second link I see PYTHONPATH=$HOME/webapps/django_app/lib/python2.7/ easy_install-2.7 --install-dir=$HOME/webapps/django_app/lib/python2.7/ --script-dir=$HOME/webapps/django_app/bin/ python-memcached I use python2.6, so I guess I change the sevens with sixes. Also I use virtual environment. Does this mean that I have to give the absolute path for easy_install, e.g $HOME/webapps/django_app/bin/easy_intall-2.6 ? And the same goes for python-memcached ? So the command I have to write will be the below? PYTHONPATH=$HOME/webapps/django_app/lib/python2.6/ $HOME/webapps/django_app/bin/easy_install-2.6 --install-dir=$HOME/webapps/django_app/lib/python2.6/ --script-dir=$HOME/webapps/django_app/bin/ $HOME/webapps/django_app/bin/python-memcached
(22 Apr '12, 13:47)
zafm
Also file /home/username/memcached.sock that I see in instructions, do I have this file, coz I don't see it. Should I do something before?
(22 Apr '12, 13:57)
zafm
1
Since you are using a virtualenv you will wan to add the python library path, normally
or something similar, use the full absolute path. As for memcached that socket file is created when you start memcached, so it missing is a sign that memcached did not start.
(22 Apr '12, 17:03)
johns
|