title: Is Django's Session model usable with memcached sessions?
body: <p>Recently we switched to memcached sessions from django's default DB sessions.</p>
  
  <p>We've been using the contrib session model to remove session based on a session_key: <a href="https://github.com/django/django/blob/master/django/contrib/sessions/models.py" rel="nofollow">https://github.com/django/django/blob/master/django/contrib/sessions/models.py</a></p>
  
  <pre><code>Session.objects.get(session_key=key).delete()
  </code></pre>
  
  <p>Once we switched to memcached sessions the above query raises a DoesNotExist exception.</p>
  
  <p>Is Django's Session model usable with memcached sessions? If so, what is the solution?</p>