Skip to content Skip to sidebar Skip to footer

Django_pylibmc Complains Under Django 1.7 And Python 3.4

My environment: Django 1.7 Python 3.2 As a disclaimer, I'm new to Django and Python. I'm going through this doc in order to use Memcachier with Django. The installion process didn

Solution 1:

That library does not appear to be compatible with Python 3.

However, as Amir suggests, there is no need to use it anyway; Django comes with a pylibmc backend, as described in the documentation.

Solution 2:

I know you are following the Heroku docs which suggest using django-pylibmc, but Django supports Pylibmc out of the box with django.core.cache.backends.memcached.PyLibMCCache. Since these are just python wrappers over the pylibmc C libraries there should be really no reason to go with django-pylibmc.

Also if you look at the README (https://github.com/jbalogh/django-pylibmc#requirements) for django-pylibmc it states that it was written and tested with Python 2.7, so the use of Python 3 is also problematic here.

I applaud your efforts for using Python 3 with Django, but please make sure that all your third party apps are compatible and I highly recommend reading this from the Django docs: https://docs.djangoproject.com/en/1.7/topics/python3/

Post a Comment for "Django_pylibmc Complains Under Django 1.7 And Python 3.4"