Wednesday, January 26, 2011

custom Middleware for Django

I'm new to Django and trying to place a custom middleware file in the
Django path. I'm modifying the settings.py file in my project. The
swfupload.py is located in django

/usr/lib/python2.4/site-packages/django/middleware

I had it in the project earlier but ti did not work and this does not
work either.


MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
# 'django.middleware.swfupload.SWFUploadMiddleware',
}

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment