Commits

Luke Plant committed 7460de5

Removed setup for deleted csrf module

  • Participants
  • Parent commits cb1a623

Comments (0)

Files changed (2)

setup/csrfmiddleware/README

-CsrfMiddleware
-==============
-
-Full documentation here:
-http://lukeplant.me.uk/resources/csrfmiddleware/
-
-
-Installation and usage
-======================
-Install the package using 'python setup.py install', or simply place the
-path of the extracted package into your python path. You then need to add 
-two lines to your Django settings file: 
-
-Add the middleware to your list of middleware classes, MIDDLEWARE_CLASSES.
-It needs to process the response after the SessionMiddleware, so must come
-before it in the list. It also must process the response before things like
-compression happen to the response, so it must come after GZipMiddleware
-(and similar). In my project it looks something like this: 
- 
-MIDDLEWARE_CLASSES = (
-    "django.middleware.gzip.GZipMiddleware",
-    "lukeplant_me_uk.django.middleware.csrf.CsrfMiddleware",
-    "django.middleware.sessions.SessionMiddleware",
-)
-
-Add a setting CSRF_MIDDLEWARE_SECRET to your settings file. This must be a
-secret string which is used to do hashing, with a length equal to your
-paranoia.

setup/csrfmiddleware/setup.py

-#!/usr/bin/python
-from distutils.core import setup
-import sys
-
-if sys.version_info < (2, 3):
-    _setup = setup
-    def setup(**kwargs):
-        if kwargs.has_key("classifiers"):
-            del kwargs["classifiers"]
-        _setup(**kwargs)
-        
-classifiers = """\
-Development Status :: 5 - Production/Stable
-Environment :: Web Environment
-License :: OSI Approved :: MIT License
-Intended Audience :: Developers
-Operating System :: OS Independent
-Programming Language :: Python
-Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries
-"""
-
-setup(name = "csrfmiddleware",
-      author = "Luke Plant",
-      author_email = "L.Plant.98@cantab.net",
-      url = "http://lukeplant.me.uk/resources/crsfmiddleware/",
-      version = '1.1',
-      description = "A Django middleware to prevent Cross Site Request Forgery attacks.",
-      platforms = ["any"],
-      py_modules = [
-        'lukeplant_me_uk.__init__',
-        'lukeplant_me_uk.django.__init__',
-        'lukeplant_me_uk.django.middleware.__init__',
-        'lukeplant_me_uk.django.middleware.csrf',
-      ],
-      packages = [],
-      long_description = """\
-This Django middleware prevents Cross Site Request Forgery attacks
-by adding a token to outgoing POST forms and requiring its presence
-on all incoming POST requests where a session is active.
-""",
-      classifiers = filter(None, classifiers.split("\n")),
-      license = "http://www.opensource.org/licenses/mit-license",
-      
-      #      zip_safe = False,
-      #      namespace_packages = [
-      #        'lukeplant_me_uk',
-      #        'lukeplant_me_uk.django',
-      #        'lukeplant_me_uk.django.middleware',
-      #      ],
-)