1. Stefan Scherfke
  2. django-lastfm


Stefan Scherfke  committed 8c9db09

Wrote something about caching and bumped the version to 1.0.1.

  • Participants
  • Parent commits 9452486
  • Branches default

Comments (0)

Files changed (4)

File CHANGES.txt

View file
-v1.0.1 –
+v1.0.1 – 2011-05-01:
 - [NEW] Added more tests.
 - [FIX] Fixed and improved behavior for some error cases.

File docs/conf.py

View file
 # The short X.Y version.
 version = '1.0'
 # The full version, including alpha/beta/rc tags.
-release = '1.0'
+release = '1.0.1'
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File docs/quickstart.txt

View file
 service <http://www.last.fm/api/tos>`_ prohibit more than five requests per
 second. Thus, you really should use caching!
-To cache the lastfm-view, just wrap it with Django’s cache-decorator:    
+The :func:`~lastfm.views.lastfm_data`-view is already wrapped with Django’s 
+<http://docs.djangoproject.com/en/1.3/topics/cache/#the-per-view-cache>`_. You 
+only need to enable caching in your ``settings.py``:
+#. Install ``memcached`` and ``python-memcache`` (e.g. with ``sudo apt-get
+   install python-memcache memcached``)
+#. Add the following line to your ``settings.py``:
+   .. sourcecode:: python
+    CACHE_BACKEND = 'dummy:///' if DEBUG else 'memcached://'
+Django’s documentation describes `caching 
+<http://docs.djangoproject.com/en/1.3/topics/cache/>`_ in more detail.
 That’s it!

File setup.py

View file
-    version='1.0',
+    version='1.0.1',
     author='Stefan Scherfke',
     author_email='stefan at sofa-rockers.org',
     description='Access Last.fm from your Django site.',