As far as I understand it, you need to put the code from the snippet in its own file and either put that in your project's directory or somewhere in your python path. Then you have to add the class to settings.py (there are some existing middlewares, just see how they do it).
I don't have any experience with this SSL middleware, but the snippet itself says that you should rather use this: http://www.djangosnippets.org/snippets/85/ Regards Jonas On Mon, Apr 21, 2008 at 3:10 AM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have a page on my site where customers can place their order. This > page is secure (https://). I'm finding that whenever some users click > click submit they are presented with a message saying: > > // > > Security alert you are about to be redirected to a connection that is > not secure. > > The information you are sending to the current site might be > retransmitted to a non secure site. > > Do you wish to continue > > // > > Currently my page that presents the user with their order information > and invoice number is not secure. I was wondering what I need to do > to get this page secure. I was looking around on the web and found > this link http://www.djangosnippets.org/snippets/240/ . I added > {'SSL':True} to my url but when I do that i get the error: > > TypeError at /cart/success/ > success() got an unexpected keyword argument 'SSL' > > // > > I've never added Middleware before. Do I need to add the code from > djangosnippet240? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---