Hello everyone, yesterday I came up with a Django middleware that has the potential to be actually useful!
I called it SSL Middleware, and what it does is take a tuple of paths (HTTPS_PATHS in the settings file) and redirect all the http:// requests for paths starting with these values to their https:// counterpart. In reverse, if an https:// request is made on a path that does *not* start with one of the values in the tuple, that will be redirected to its http:// version. The code is here: http://unicoders.org/code/django/trunk/middleware/sslmiddleware.py Cheers! -- Antonio --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---