64👍
✅
As you are using virtualenv
you’d need to install this dependency from inside as you might have created the virtual environment before installed it as a system-wide library.
After activate your virtualenv
type:
pip install python-memcached
This should solve it.
3👍
Based on pymemcache documentation
Since version 3.2, Django has included a pymemcache-based cache backend. See its documentation.
On older Django versions, you can use django-pymemcache.
So for Django 3.2+ use :
pip install pymemcache
- [Django]-How to repeat a "block" in a django template
- [Django]-Django-celery: No result backend configured
- [Django]-How can I Change type Of Django Calendar With Persian Calendar?
1👍
First
run
pip install django-pylibmc
set you cache backend:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'LOCATION': '127.0.0.1.11211',
}
}
- [Django]-Where do I set the domain for my Django Sites framework site, when I only have one?
- [Django]-Django admin: separate read-only view and change view
- [Django]-Template filter to trim any leading or trailing whitespace
Source:stackexchange.com