Skip to content

dcramer/django-cookies

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

A two-part middleware which modifies request.COOKIES and adds a set and delete method.

  • set matches django.http.HttpResponse.set_cookie
  • delete matches django.http.HttpResponse.delete_cookie

Installation

Just modify your MIDDLEWARE_CLASSES setting, order is important here!

:
MIDDLEWARE_CLASSES = (
'djcookies.CookieMiddleware', ...

)

Usage

def my_view(request):
request.COOKIES.set([args]) ... return response

About

Drop in replacement for request.COOKIES in Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages