Thankyou everso much, think I've had too many hours at this and my brain is
working at half pace :-)
I got rid of that error and now I am getting this:
File "/home/jameslewis/lib/python2.7/django/conf/__init__.py", line 44, in
_setup
self._wrapped = Settings(settings_module)
File "/home/jameslewis/lib/python2.7/django/conf/__init__.py", line 113, in
__init__
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must
not be empty.
Do you know what this could be?
Thanks
James
On Fri, Sep 4, 2015 at 2:11 AM, Danny <[email protected]> wrote:
> On 4/09/2015 10:24 AM, James Lewis wrote:
>
> Hi Danny thanks for replying so quickly, I am not sure what the name of my
> form is. Would I already have an order form within cartridge or would I
> have to build one specifically to work with stripe?
>
>
> Hang on, you've (previously) updated SHOP_CHECKOUT_FORM_CLASS and yet you
> don't know what the name of your form class is?
> It's whatever you used to have under SHOP_CHECKOUT_FORM_CLASS.
>
> As for using Stripe as your payment processor, you'll either have to find
> any existing implementation or write one yourself.
>
> If you're using https://github.com/readevalprint/cartridge-stripe
> then you can see that the name of the class is
> "cartridge_stripe.forms.OrderForm" so that would be your reference for
> urls.py,
>
> e.g
>
> from cartridge_stripe.forms import OrderForm
>
> url("^shop/checkout/$", "cartridge.shop.views.checkout_steps",
> name="shop_checkout", kwargs=dict(form_class=OrderForm)),
>
> Your original email never mentioned what you'd set
> SHOP_CHECKOUT_FORM_CLASS to, so I'd assumed you'd written your own Order
> Form class in your own app
> and were doing it that way...
>
> Seeya. Danny.
>
>
> Many Thanks
>
> James
>
> On Fri, Sep 4, 2015 at 1:23 AM, Danny <[email protected]> wrote:
>
>> On 4/09/2015 9:51 AM, James Lewis wrote:
>>
>> Hi Danny, I have made the changes you mentioned and now I am getting the
>> following error:
>>
>>
>> File "/home/jameslewis/webapps/myshop/scooter/scooter/urls.py" in <module>
>>
>> 33. name="shop_checkout", kwargs=dict(form_class=MyOrderForm)),
>>
>>
>> Exception Type: NameError at /
>>
>> Exception Value: name 'MyOrderForm' is not defined
>>
>>
>>
>> Is that the name of your Form, though? Have you done "from ... import
>> MyOrderForm" in urls.py?
>>
>> I'll need some more context.
>>
>> I am sure it's something silly, but I've checked stackoverflow and can't
>> find anything?
>>
>>
>> Many Thanks
>>
>>
>> James :-)
>>
>>
>> Seeya. Danny.
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Mezzanine Users" group.
>> To unsubscribe from this topic, visit
>> <https://groups.google.com/d/topic/mezzanine-users/DQX3K3jdojE/unsubscribe>
>> https://groups.google.com/d/topic/mezzanine-users/DQX3K3jdojE/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/DQX3K3jdojE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.