Re: [mezzanine-users] a small app : mezzanine-onepage

2015-05-19 Thread Luc Milland
thanks for the link, it's done :
https://github.com/lucmilland/mezzanine-onepage/releases/tag/v1.1.0 .

I struggled a bit, since I naively thought that I could get rid off the
EXTRA_MODEL_FIELDS part, but of course not. Swappable Models would be
the solution, here :)
https://github.com/stephenmcd/mezzanine/issues/1160 .

Luc

Josh Cartmell  writes:

> No problem, here's a blog post I've used numerous times to remind myself
> how to do it:
> http://dodgyville.tumblr.com/post/23028930440/new-fields-in-mezzanine-without-editing-or
>
> Again, thanks for sharing, this looks great!
>
> On Tue, May 12, 2015 at 11:43 AM,  wrote:
>
>> Hi Josh,
>> of course you're right, I never study this aspect of app deployment : will
>> dig that and commit soon, thanks for the advice :)
>>
>>
>> Le mardi 12 mai 2015 16:42:35 UTC+2, Josh Cartmell a écrit :
>>>
>>> Very cool Luc, thanks for sharing!
>>>
>>> One thought would be to include that single migration inside of the
>>> onepage app, that way people wouldn't need to modify Mezzanine's pages app
>>> itself.
>>>
>>> On Tue, May 12, 2015 at 3:16 AM, Luc Milland  wrote:
>>>
>>>> Hello there,
>>>> last year I had to build a website and the client wanted it to be in a
>>>> "one page" style.
>>>> Nothing wrong with that, but I wanted to stick with Mezzanine and the
>>>> "Page" philosophy is not really plug-and-play for this kind of sites. I
>>>> worked around this using Renyi's "mezzanine-blocks" app and some Gist by
>>>> Josh to provide an ajax contact form.
>>>>
>>>> Today I have to build another one page website and this approach will
>>>> not fit, since I want the user be able to use all the functions that
>>>> comes with Pages without overloading the admin UI.
>>>>
>>>> So here is this piece of code which allows to nest any page content in a
>>>>  of any page. It's the up to the
>>>> developer to hide/show/animate
>>>> the sections, build custom menus...
>>>> All the user needs to do is to tick a box to see the page nested in it's
>>>> parent.
>>>>
>>>> It works with rich text pages, gallery and forms (ajax inside).
>>>>
>>>> here is the thing, fresh and barely tested (but it seems to work pretty
>>>> well) :
>>>>
>>>> https://github.com/lucmilland/mezzanine-onepage
>>>>
>>>> comments welcome :)
>>>>
>>>> regards,
>>>> Luc
>>>>
>>>> --
>>>> 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 mezzanine-use...@googlegroups.com.
>>>> 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 mezzanine-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>

-- 
Sent with my mu4e

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] a small app : mezzanine-onepage

2015-05-12 Thread Luc Milland
Hello there,
last year I had to build a website and the client wanted it to be in a
"one page" style.
Nothing wrong with that, but I wanted to stick with Mezzanine and the
"Page" philosophy is not really plug-and-play for this kind of sites. I
worked around this using Renyi's "mezzanine-blocks" app and some Gist by
Josh to provide an ajax contact form.

Today I have to build another one page website and this approach will
not fit, since I want the user be able to use all the functions that
comes with Pages without overloading the admin UI.

So here is this piece of code which allows to nest any page content in a
 of any page. It's the up to the developer 
to hide/show/animate
the sections, build custom menus...
All the user needs to do is to tick a box to see the page nested in it's
parent.

It works with rich text pages, gallery and forms (ajax inside).

here is the thing, fresh and barely tested (but it seems to work pretty
well) :

https://github.com/lucmilland/mezzanine-onepage

comments welcome :)

regards,
Luc

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Another Mezzanine site

2014-06-18 Thread Luc Milland
+1, I love the camel in replacement of the ant ;)

Le mercredi 18 juin 2014 à 01:48 -0700, i bigoss a écrit :
> Really great looking site !
> 
> On Tuesday, June 17, 2014 6:45:00 PM UTC+2, Ahmad Khayyat wrote:
> >
> > I finally got around to completing the conversion of this website from 
> > drupal to mezzanine, and I cannot be happier!
> >
> > http://openerparabia.org/
> >
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Consult one design

2014-05-14 Thread Luc Milland
Hi Wesley,
you could use something like https://github.com/renyi/mezzanine-blocks
for that use.

Luc

Le mardi 13 mai 2014 à 23:58 -0700, Wesley a écrit :
> Guys,
>   I am trying to customize homepage these days.
> 
> I have succeeded to make homepage editable in admin.
> Here just wanna consult one design case.
> Firstly, show u guys the homepage structure:
> 
> 
> 
> So, just see the ColumnX part, now , I wanna these columns editable during 
> the admin homepage editing, that is, columns number and each column 
> content, so, I think the ColumnX part should be a page, eh?
> 
> How to desigh this?
> 
> Thanks.
> 
> Wesley
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: cartridge and cartridge-payments : help with checkout step

2014-04-16 Thread Luc Milland

> Luc, looking forward to reading more details about how you went about
> it too. And I'm sure other devs would also appreciate it - then
> they'll have several options to choose from, for implementing PayPal
> WPS with Cartridge.
You are right, I have to do this. Right now I *need* to build my own
website since I feel naked as a siteless developper :) But After that,
yes, I will do.

> Ideally, the architecture of Cartridge's order completion system will
> be modified for the better, such that (a) it can be called easily from
> an external code snippet like a PayPal IPN callback, and (b) it's
> de-coupled from the request, and there's no need to use a fake request
> object. That way, both of our hacks / solutions will become
> unnecessary.
really true. As I recall, it could be as simple as making the request
argument optional for the order.complete method.

Another caveat by using paypal standard is that when user is redirected
to order_complete url, we do not know if it has been completed or not
(what if payment was refused ?). There is some race condition with the
ipn request too.
My solution for this is to sort the situation out with a custom
"complete_checkout" view and test if order already completed or not and
return a "payment pending" template if not.
This breaks the google analytics stuff (but there must be some way to
fix it with Universal Analytics and the hability to send statitistics
through a POST request).

By the way, here is the shop for which I had to use Papyal WPS (all in
french, sorry) : https://www.ischnura.fr

cheers,
Luc



-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Can't figure out why my Static Files won't load

2014-03-29 Thread Luc Milland
could this be firewall related ?

Le vendredi 28 mars 2014 à 18:20 -0700, Kyle Pennell a écrit :
> First off, thanks so much for taking the time to respond to another 
> beginner.  I'm on tutorial number 5 now of trying to figure this out.  I'm 
> amazed I haven't yet.  What a challenge.
> 
> Changed that file:
> 
> server {
> > server_name 107.170.215.138;
> > access_log off;
> > location /static/ {
> > alias /opt/myenv/mezzanine_app;
> > }
> > location / {
> > proxy_pass http://127.0.0.1:8001;
> > proxy_set_header X-Forwarded-Host $server_name;
> > proxy_set_header X-Real-IP $remote_addr;
> > add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI 
> > COM NAV"';
> > }
> > }
> >
> >
> My static ip was in the allowed hosts:
> 
> ALLOWED_HOSTS = [
> > '107.170.215.138',
> > '107.170.215.138.',
> > ]
> 
> 
> 
> Error logs are the same.
> 
> 
> If you happen to have any random ideas, they'd be very much appreciated.
> 
> Kyle
> 
> On Friday, March 28, 2014 2:48:01 PM UTC-6, Matthew Summers wrote:
> >
> > On Fri, Mar 28, 2014 at 1:35 PM, Kyle Pennell 
> > > 
> > wrote: 
> > > Thanks for responding. 
> > > 
> > > Double checking I understand: 
> > > 
> > >location /static/ { 
> > > alias  /opt/myenv/mezzanine_app/static/; 
> > > } 
> > > 
> > > Should be: 
> > > 
> > >location /static/ { 
> > > alias  /opt/myenv/mezzanine_app/static; 
> > > } 
> > > 
> > > Or? 
> > > 
> > >location /static/ { 
> > > alias  /opt/myenv/mezzanine_app; 
> > > } 
> > > 
> > > 
> >
> > You'll want this one assuming the mezz project layout where your 
> > static dir is directly under your messanine_app dir: 
> >
> > location /static/ { 
> >  alias  /opt/myenv/mezzanine_app; 
> >  } 
> >
> >
> > As far as your error log, it looks like you might need to add the 
> > static ip of your server to ALLOWED_HOSTS in settings. Your app server 
> > is refusing to respond to nginx. 
> >
> > Cheers, 
> > Matt 
> >
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Subclass model of form page

2014-03-28 Thread Luc Milland
Hello,
I think that you can not inherit from mezzanine.forms.models.Form since
it does inherit from mezzanine.pages.models.Page itself. This falls
under the warning in the documentation I pointed out in a previous
email.
I don't know what you try to achieve, but since
mezzanine.forms.models.Form already inherit from Page, you can use it as
is.
To set up a contact page, just a form instance to your site through the
admin and add the fields you need.
Depending on what you aim, you may also consider field injection or
custom model but not inherited from Page.

hope that helps regards,
Luc


> here it's my custom model
> 
> https://gist.github.com/anonymous/9840574
> 
> for the space between the " _" I suppose it's render error of the google 
> group form
> 
> If you have any idea ?
> 
> Thank you
> 
> Le vendredi 28 mars 2014 11:15:49 UTC+1, Luc Milland a écrit :
> >
> > Hello, 
> > you should use gist or some other handy way to post your code and post 
> > the whole thing, so we don't have to guess the rest. 
> > For instance, here you use the "_" function which is usually a shortcut 
> > for ugettext 
> > (
> > https://docs.djangoproject.com/en/dev/topics/i18n/translation/#standard-translation)
> >  
> > . 
> > If this is the way you use it, why is there a space between '_' and 
> > '(' ? 
> >
> > regards, 
> > Luc 
> >
> > Le vendredi 28 mars 2014 à 01:42 -0700, Cajoline a écrit : 
> > > I tried to create a subclass of Form model like this: 
> > > 
> > > class ContactPage (Page, Form): 
> > > >  "" " 
> > > >  Representing A page of the home page 
> > > >  "" " 
> > > >  RichTextField address = (_ ('Info'), null = True, blank = True) 
> > > >  class Meta: 
> > > >  verbose_name = _ ("Form & Info") 
> > > >  verbose_name_plural = _ ("Form & Info") 
> > > 
> > > 
> > > But I get the following error: 
> > > 
> > > *TypeError: Error When calling the metaclass bases * 
> > > * Can not create a consistent method resolution * 
> > > 
> > > Do you have any idea? thank you 
> > > 
> > > Le mercredi 26 mars 2014 20:01:44 UTC+1, Cajoline a écrit : 
> > > > 
> > > > Hello, 
> > > > I would like to create a subclass model of form page, but I can not 
> > add 
> > > > custom fields. 
> > > > 
> > > > Create a subclass of a normal page I have no problem but for the form 
> > page 
> > > > I can not do it, because the fields to create form is not displayed 
> > > > 
> > > > Would you have an example of a subclass of page form 
> > > > 
> > > > Thank you 
> > > > 
> > > 
> >
> >
> >
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Subclass model of form page

2014-03-28 Thread Luc Milland
Hello,
you should use gist or some other handy way to post your code and post
the whole thing, so we don't have to guess the rest.
For instance, here you use the "_" function which is usually a shortcut
for ugettext
(https://docs.djangoproject.com/en/dev/topics/i18n/translation/#standard-translation)
 .
If this is the way you use it, why is there a space between '_' and
'(' ?

regards,
Luc

Le vendredi 28 mars 2014 à 01:42 -0700, Cajoline a écrit :
> I tried to create a subclass of Form model like this: 
> 
> class ContactPage (Page, Form): 
> >  "" "
> >  Representing A page of the home page 
> >  "" "
> >  RichTextField address = (_ ('Info'), null = True, blank = True) 
> >  class Meta: 
> >  verbose_name = _ ("Form & Info") 
> >  verbose_name_plural = _ ("Form & Info") 
> 
> 
> But I get the following error: 
> 
> *TypeError: Error When calling the metaclass bases *
> * Can not create a consistent method resolution *
> 
> Do you have any idea? thank you
> 
> Le mercredi 26 mars 2014 20:01:44 UTC+1, Cajoline a écrit :
> >
> > Hello, 
> > I would like to create a subclass model of form page, but I can not add 
> > custom fields. 
> >
> > Create a subclass of a normal page I have no problem but for the form page 
> > I can not do it, because the fields to create form is not displayed 
> >
> > Would you have an example of a subclass of page form 
> >
> > Thank you
> >
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Subclass model of form page

2014-03-27 Thread Luc Milland
Hello,
do you mean subclassing this model :
http://mezzanine.jupo.org/docs/packages.html#module-mezzanine.forms ?
If so, you can't subclass it directly, see
http://mezzanine.jupo.org/docs/content-architecture.html#creating-custom-content-types
 :

«NOTE When creating custom content types, you must inherit directly from
the Page model. Further levels of subclassing are currently not
supported. Therefore you cannot subclass the RichTextPage or any other
custom content types you create yourself. Should you need to implement a
WYSIWYG editable field in the way the RichTextPage model does, you can
simply subclass both Page and RichText, the latter being imported from
mezzanine.core.models.»

Hope that answers you question.

regards,
Luc

Le mercredi 26 mars 2014 à 12:01 -0700, Cajoline a écrit :
> Hello, 
> I would like to create a subclass model of form page, but I can not add 
> custom fields. 
> 
> Create a subclass of a normal page I have no problem but for the form page 
> I can not do it, because the fields to create form is not displayed 
> 
> Would you have an example of a subclass of page form 
> 
> Thank you
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Multilingual website

2014-03-16 Thread Luc Milland
Hello,
Almost one year ago I achieved something usable
(http://www.gitedelaterrasse.fr) using Renyi's gist :
https://gist.github.com/renyi/3596248 .
This is discussed here :
https://github.com/stephenmcd/mezzanine/issues/106 and it seems that
some work has been done since this time.

regards,
Luc

Le dimanche 16 mars 2014 à 01:25 -0700, Cajoline a écrit :
> Hello, 
> for some time now I'm interested in the cms Mezzanine for my clients 
> to replace cms in PHP that I use. 
> But here the problem is that I still need to make multilingual websites and 
> I would like to know how to proced ?
> 
> For example I would like to have this type of url: 
> 
> -mysite.com/fr/pag 
> -mysite.com/es/page 
> - Etc. 
> 
> How to achieve this? 
> 
> Is it possible to copy pages to translate next? if yes how to ?
> 
> Thank you for your reply and sorry for my English
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Mezzanine Multiple Content Blocks per Page

2014-03-01 Thread Luc Milland
Le vendredi 28 février 2014 à 22:25 -0800, Radomir Wojcik a écrit :
> Its not really blocks im after, just dividing content up into segments like 
> in this video:
> 
> http://www.youtube.com/watch?v=1VtCSh_Z68c
> 
> How did this guy do it?
> 
You mean something like this : 
http://www.gitedelaterrasse.fr/en/to-see-and-to-do/ ?

The guy in the video does it with blog posts as a text base.
The "one page" thing is only templating, I guess. That's what I did for
http://www.gitedelaterrasse.fr , see
https://gist.github.com/lucmilland/9287403 .

Luc

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] how to modify an order model field?

2014-02-17 Thread Luc Milland
Hello,
I had the same need and here is what I did.
I have a local app called "custom" where goes all my - surprise !-
custom stuff.
In custom/fields.py and custom/form/order.py I use the following code :
https://gist.github.com/lucmilland/9047978 .
Then I just have to set SHOP_CHECKOUT_FORM_CLASS =
'custom.forms.order.NewOrderForm' et it's good to go :)

Hope this help,
Luc

Le lundi 17 février 2014 à 01:37 -0800, Jacob a écrit :
> Hello
> 
> If I wanted to modify a field in Cartridge.model.Order then how would I 
> accomplish that?
> 
> Specifically, I would like to modify the country and state fields to be 
> choice fields instead.
> 
> I read something about monkey patching but I'm not sure how to go about 
> this.
> 
> OR
> 
> Is there a way to modify the checkout form to make country and state fields 
> selectable?
> 
> some guidance is much appreciated
> Thank you!
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Admin navigation

2014-02-17 Thread Luc Milland
Hello,
I think it's great, since most of the people have wide screens nowadays.
Maybe it would be cool if submenus were toggleable, since the list can
become very long when using custom and third party apps.

Luc

Le lundi 17 février 2014 à 12:01 +1100, Stephen McDonald a écrit :
> Playing around with restyling the nav menu in the admin:
> 
> http://cl.ly/image/3519242k1m0K
> 
> The nav menu contains the admin classes grouped by app - previously it was
> implemented as light grey drop-down menus across the top of the screen.
> You'll see I've moved everything to the left-hand side, with all items
> permanently visible.
> 
> What do you think?
> 
> 
> -- 
> Stephen McDonald
> http://jupo.org
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] select multiple images for a gallery

2014-02-02 Thread Luc Milland
Hi,
you can upload a zip file.

Luc

Le dimanche 02 février 2014 à 13:35 -0800, Federico Bruni a écrit :
> Hi
> 
> There's a way to add multiple images at once to a gallery?
> 
> Currently I have to add the images one by one by clicking on the first icon 
> (the light blue one, with the arrow).
> I see that the second icon is a kind of check box which might do what I'm 
> looking for, but if I click on it nothing happens. It's a bug or I'm 
> missing something?
> 
> I'm using Mezzanine 3.0.7
> 
> Thanks
> Federico
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Re: cartridge and cartridge-payments : help with checkout step

2014-01-26 Thread Luc Milland
st, need to force the session object to
> # save after modifying its data.
> session.save()
> 
> for item in cart:
> try:
> variation = 
> ProductVariation.objects.get(sku=item.sku)
> except ProductVariation.DoesNotExist:
> pass
> else:
> variation.update_stock(item.quantity * -1)
> variation.product.actions.purchased()
> 
> code = session.get('discount_code')
> if code:
> DiscountCode.objects.active().filter(code=code).update(
> uses_remaining=F('uses_remaining') - 1)
> cart.delete()
> except Order.DoesNotExist:
> pass
> except Cart.DoesNotExist:
> pass
> 
> payment_was_successful.connect(payment_complete)
> 
> 4. Apply some hacks to cartridge-payments and django-paypal:
> 
> a) lib/python2.7/site-packages/payments/multipayments/forms/paypal.py 
> modify per diff at:
> 
> https://github.com/django-mezzanine-paypal/cartridge-payments/commit/6446f09832135e10ebae5cf10c573cafd3607b9b
> 
> b) src/django-paypal/paypal/standard/forms.py modify per:
> 
> http://stackoverflow.com/a/16804992/2066849
> 
> I think that's about it - will test more thoroughly and will re-create when 
> I do a better write-up. But basically, with this, the PayPal IPN callback 
> does everything that cartridge.shop.models.Order.complete() would usually 
> do, if it got called (which it doesn't if you're using PayPal WPS, and I 
> believe also PayPal EC).
> 
> Hope that helps you guys for now.
> 
> Jeremy.
> 
> On Thursday, November 14, 2013 2:08:30 AM UTC+11, Luc Milland wrote:
> >
> > Hello, 
> > I am trying to make a shop with cartridge but I don't want to deal with 
> > credit cards. 
> > That's why I want to use cartridge-payment with Paypal express checkout 
> > (payment part only, if I understand well). 
> > Using sandbox paypals accounts and cartridge-payment readme, I can make 
> > an order, pay it and be sent back to the shop at 
> > shop/checkout/complete . 
> > But there is my problem : the order is registred, but not completed. I 
> > mean that it looks as the final checkout step did not apply (I guess it 
> > is because the checkout form is sent to paypal and to our good old 
> > checkout_step view, right ?) and as order.complete(request) was never 
> > called. 
> > As a result, cart is not empty, etc... 
> > Does anybody had already been there ? Did I miss something ? Is there a 
> > way to jump back in the checkout workflow, maybe with Paypal IPN ? 
> >
> > thanks for your ideas and many thanks to all who build this awesome 
> > piece of code that mezzanine/cartridge is. 
> >
> > Luc 
> >
> >
> On Thursday, November 14, 2013 2:08:30 AM UTC+11, Luc Milland wrote:
> >
> > Hello, 
> > I am trying to make a shop with cartridge but I don't want to deal with 
> > credit cards. 
> > That's why I want to use cartridge-payment with Paypal express checkout 
> > (payment part only, if I understand well). 
> > Using sandbox paypals accounts and cartridge-payment readme, I can make 
> > an order, pay it and be sent back to the shop at 
> > shop/checkout/complete . 
> > But there is my problem : the order is registred, but not completed. I 
> > mean that it looks as the final checkout step did not apply (I guess it 
> > is because the checkout form is sent to paypal and to our good old 
> > checkout_step view, right ?) and as order.complete(request) was never 
> > called. 
> > As a result, cart is not empty, etc... 
> > Does anybody had already been there ? Did I miss something ? Is there a 
> > way to jump back in the checkout workflow, maybe with Paypal IPN ? 
> >
> > thanks for your ideas and many thanks to all who build this awesome 
> > piece of code that mezzanine/cartridge is. 
> >
> > Luc 
> >
> >
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Re: trying to use cartridge-payments

2014-01-23 Thread Luc Milland
Hi,

> I have checked it It does not exist in database.
As I can recall, the only thing I did to create it in database in the
site I am building now, is what Josh B wrote :
- adding the EXTRA_MODEL_FIELDS definition for callback_uuid
- running schemamigration in the way Stephen advices here :
http://mezzanine.jupo.org/docs/model-customization.html#field-injection-caveats
- running python manage.py migrate myapp

> 
> I've found another thing...
> This time I have installed everything in new envelope and instead of doing 
> createdb --noinput
> after mezzanine-project -a cartridge project_name
>  I have added payment settings to settings.py and then did run  createdb 
> --noinput
> now what i have is the the regular /shop/checkout/
so the column exists this time, right ?

> Changing  strings like SHOP_CHECKOUT_STEPS_SPLIT = True 
> does have effect but still I can't see my payments with its google wallet / 
> paypal options
> There must be something wrong with adding things to database 
I dont think this is database related, you should check your
configuration, form and templates.

regards,
Luc

> 
> On 23 Jan 2014, at 20:32, Luc Milland  wrote:
> 
> > Hello,
> > does the column exist in the database or not ?
> > Message suggest it does not, but did you check it ? If not, I guess
> > something went wrong with the migration.
> > 
> > Luc
> > 
> > Le jeudi 23 janvier 2014 à 11:26 -0800, jaroslaw.b...@gmail.com a
> > écrit :
> >> After many many tries I am still getting same error
> >> 
> >> Can anyone help?
> >> 
> > 
> > 
> > -- 
> > 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/74fj6_KXAFE/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to 
> > mezzanine-users+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Re: trying to use cartridge-payments

2014-01-23 Thread Luc Milland
Hello,
does the column exist in the database or not ?
Message suggest it does not, but did you check it ? If not, I guess
something went wrong with the migration.

Luc

Le jeudi 23 janvier 2014 à 11:26 -0800, jaroslaw.b...@gmail.com a
écrit :
> After many many tries I am still getting same error
> 
> Can anyone help?
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Theming: not able to override index.html

2013-12-21 Thread Luc Milland
Oops, I answered too quickly, sorry. I have it in "pages" on my sites
using an editable index page, but it's not the default.

Did you install django-debug-toolbar ? It's handy to debug templates
paths.

regards,
Luc

Le samedi 21 décembre 2013 à 23:32 +0100, Luc Milland a écrit :
> Hi,
> I think your mistake is here :
> 
> > This is my theme directory:
> > .
> > ├── __init__.py
> > ├── static
> > │   ├── css
> > │   ├── img
> > │   └── js
> > └── templates
> > ├── base.html
> > ├── includes
> > │   └── footer_scripts.html
> > └── index.html
> 
> index.html should sit in templates/pages, not at "templates" root.
> Let us know if it solves your problem !
> 
> regards,
> Luc
> 


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Theming: not able to override index.html

2013-12-21 Thread Luc Milland
Hi,
I think your mistake is here :

> This is my theme directory:
> .
> ├── __init__.py
> ├── static
> │   ├── css
> │   ├── img
> │   └── js
> └── templates
> ├── base.html
> ├── includes
> │   └── footer_scripts.html
> └── index.html

index.html should sit in templates/pages, not at "templates" root.
Let us know if it solves your problem !

regards,
Luc

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.