Yeah same thing on apache and apache2, after you just need to define
which url should manage by SSL and do something like in a custom
middleware:

def process_view(self, request, view_func, view_args, view_kwargs):
        if SSL in view_kwargs:
            secure = view_kwargs[SSL]
            del view_kwargs[SSL]

that's it !

But you need to deal with all your content, everything should be serve
SSL (jpg, css, js...)

On Wed, Dec 8, 2010 at 12:33 AM, Peter Halliday
<[email protected]> wrote:
> All of this sounds exactly like what I'm doing, but inserting Apache
> instead. I don't have the option of using nginx.  I'm not sure if some of
> the problem is using satchmo via a CMS.  I'm using FeinCMS.
>
> Peter Halliday
> Excelsior Systems
> (Phone:) 607-936-2172
> (Cell:) 607-329-6905
> (Fax:) 888-265-5082
>
>
> On Wed, Dec 8, 2010 at 12:28 AM, Laszlo Antal <[email protected]> wrote:
>>
>> Hi
>>
>> Had issue with ssl as well. I did a redirect at nginx for the url checkout
>> and turned off ssl in satchmo.
>> That fixed it for me.
>> lzantal
>>
>> On Dec 7, 2010, at 21:10, Peter Halliday <[email protected]>
>> wrote:
>>
>> Mathieu
>> Thanks.  I'm doing SSL with Apache via rewrite, which is working perfectly
>> up until I hit the Checkout pages.  I set the settings the way you describe.
>>  I recreated a custom SSLMiddleware as well like it sounds like you do that
>> strips off the SSL.  I use Authorize.Net payment module.  not sure if you
>> do.
>> The wierd thing is I put print statements to the error log that print out
>> the value of view_kwargs and it's empty.  However, at some point it's
>> sending kwargs obviously to the view.  So, not sure how it's just getting
>> stripped off.
>>
>>
>> Peter Halliday
>> Excelsior Systems
>> (Phone:) 607-936-2172
>> (Cell:) 607-329-6905
>> (Fax:) 888-265-5082
>>
>>
>> On Wed, Dec 8, 2010 at 12:04 AM, Mathieu Leduc-Hamel <[email protected]>
>> wrote:
>>>
>>> On our side we just decide to do SSL with nginx, put the SSL flag to
>>> true and create a new middleware that just "eat" the SSL keyword for
>>> our request.
>>>
>>>  It's nasty but it work and since many part of satchmo are coded
>>> differently depending of the use of SSL or not, it was mandatory to
>>> keep as if it was working with the default middlware.
>>>
>>> I would say that that current implantation on sachmo is far from
>>> perfect cause you should not code your thing differently if you are
>>> using SSL or not, it's not the job of a framework...
>>>
>>> On Wed, Dec 8, 2010 at 12:00 AM, Peter Halliday
>>> <[email protected]> wrote:
>>> > If it also helps, I'm redirecting all www through Apache.  So I'm not
>>> > using
>>> > SSLMiddleware to do it.  I created a copy of the SSLMiddleware that
>>> > doesn't
>>> > redirect.  And then set SSL to True in the satchmo settings.
>>> >
>>> >
>>> > Peter Halliday
>>> > Excelsior Systems
>>> > (Phone:) 607-936-2172
>>> > (Cell:) 607-329-6905
>>> > (Fax:) 888-265-5082
>>> >
>>> >
>>> > On Tue, Dec 7, 2010 at 11:58 PM, Peter Halliday
>>> > <[email protected]> wrote:
>>> >>
>>> >> I'm not sure if anyone can help.  I'm not sure if this is related to
>>> >> the fact I'm running satchmoproject within FeinCMS as an
>>> >> ApplicationContent context.  However, it gave me an error that
>>> >> indicated that the SSL keyword wasn't being deleted.  However, when I
>>> >> did printing to the log, the view_kwargs was empty.  I could only fix
>>> >> it by adding **kwargs as an argument in payments/modules/authorizenet/
>>> >> views.py
>>> >>
>>> >> Peter
>>> >>
>>> >>
>>> >>
>>> >> On Oct 27, 11:47 pm, Peter Halliday <[email protected]>
>>> >> wrote:
>>> >> > My settings hasSSLset equal to False.  I'm running in development
>>> >> > mode right now from runserver.  I added debug statements in
>>> >> > SSLRedirect and sees that it's running and kwargs are empty.
>>> >> >  However,
>>> >> > in payment/modules/authorizenet/views.py there's a kwargs that's
>>> >> > passed that has {'SSL':False}.  So, it appears that the Middleware
>>> >> > isn't remove it correctly.
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups
>>> >> "Satchmo users" group.
>>> >> To post to this group, send email to [email protected].
>>> >> To unsubscribe from this group, send email to
>>> >> [email protected].
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/satchmo-users?hl=en.
>>> >>
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "Satchmo users" group.
>>> > To post to this group, send email to [email protected].
>>> > To unsubscribe from this group, send email to
>>> > [email protected].
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/satchmo-users?hl=en.
>>> >
>>>
>>>
>>>
>>> --
>>> Mathieu Leduc-Hamel
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Satchmo users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/satchmo-users?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Satchmo users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/satchmo-users?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Satchmo users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/satchmo-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>



-- 
Mathieu Leduc-Hamel

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to