WebFaction
Community site: login faq
1
1

I've setup an askbot installation but i've been getting some problems due to caching.I was advised to setup memcached for production use with askbot.Now which settings should i add to the settings file and what values should i enter, i've alreaedy started memcached socket.

asked 24 Apr '12, 13:14

boscomX
1124
accept rate: 0%


Askbot is built on Django, so the following settings should work for you: Configuring Django to Use Memcached

permanent link

answered 24 Apr '12, 14:22

seanf
12.2k41836
accept rate: 37%

what about the extra settings in the settings file, like cache_backend which by default askbot has it set to locmem// , what should i replace it with after starting memcached.

(24 Apr '12, 23:02) boscomX

CACHE_BACKEND is an setting for Django 1.2 and under. The differences and the settings are covered in the Django Docs.

(25 Apr '12, 00:17) johns

I'm getting the following error after adding the cache settings

ImproperlyConfigured: Error importing middleware django.contrib.sessions.middleware: "No module named memcache"

(26 Apr '12, 01:00) boscomX
1

This just means that the module isn't on the path. If you haven't installed it, you can do so using:

mkdir -p $HOME/lib/python2.7 && easy_install-2.7 python-memcached

If it's already installed, then you just need to add it to the python path in your WSGI file.

(26 Apr '12, 01:24) ryans ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×34
×17

question asked: 24 Apr '12, 13:14

question was seen: 7,532 times

last updated: 26 Apr '12, 01:24

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM