[mezzanine-users] Re: How can I create a of current page links for admin panel within models.py?

2015-11-11 Thread Sam W
models.ForeignKey to Page, use page's URL in template.

On Friday, 6 November 2015 19:02:07 UTC+13, Geoff P wrote:
>
> Hello, I'm trying to create a chunk of content for a homepage. I've got 
> the admin.py and models.py working together so the heading and the caption 
> are editable in the admin, but I'm also trying to add a link to each chunk. 
> I'd like the link to be selectable in the admin and the link options based 
> on the pages that have been created for the site so far. I've looked into 
> django's model field reference and found 'choices'. Is there a way to 
> combine the choices attribute with perhaps a tuple of the pages that have 
> been created? Been stuck for several hours, seems like there could be 
> something built in for this that I'm missing. Any tips? Thanks!
>

-- 
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] Check if page has child pages

2015-11-11 Thread Neum Schmickrath
Thanks for the reply Danny. The problem with both of those is they expect 
to be in a recursive "for" loop so I'll get back multiple results depending 
on how many children there are. I'll go ahead and create my own for now. 
Just didn't want to be adding something that was already there :)

On Wednesday, November 11, 2015 at 2:04:20 PM UTC-7, Danny S wrote:
>
> On 12/11/2015 5:22 AM, Neum Schmickrath wrote: 
> > I have a layout I'm working on that has a sidebar that displays a 
> > sub-menu of the child pages of the current page being viewed. On 
> > category pages I can easily test if there are child categories by 
> > using {% if child_categories %} and then showing the sidebar. On pages 
> > is there a similar processor that I'm missing somehow? I don't want to 
> > display an empty sidebar if there won't be any links there. 
> > 
> The navigation menu from the left hand side of Mezzanine default uses 
> this: 
>
>
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/templates/pages/menus/tree.html#L20
>  
>
> page.has_children_in_menu 
>
> Would this work? 
>
> There's also an attribute "has_children" set on the page in the 
> page_menu template tag: 
>
>
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/templatetags/pages_tags.py#L84
>  
>
> I'm sure both of these might point you in the right direction. 
>
> Seeya. Danny. 
>
>

-- 
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] Re: Do djanog-oscar and django-oscar-stores integrate with Mezzanine?

2015-11-11 Thread Sam W
There's some stuff Cartridge doesn't do that naturally that Oscar might be 
able to. Stuff I've had trouble doing in cartridge includes:
- Multiple currency.
- Customer specific pricing.
- Payment solutions that require a redirect rather than processing customer 
CC data on server.
- Showing different product lists to different customers.
- Quantity breaks in pricing.

Cartridge seems intentionally implemented as a simple store, with a 
sensible-to-maintain array of features. It's fairly good at what it does, 
but for more complicated stuff, using something else seems like a better 
approach, and Oscar might be that something else, no?

On Thursday, 12 November 2015 07:41:24 UTC+13, Neum Schmickrath wrote:
>
> I haven't heard of anything like this. Any reason you wouldn't want to 
> just build off of the already integrated shopping cart module, Cartridge 
> ?
>
> On Saturday, November 7, 2015 at 5:13:15 PM UTC-7, Edward Henderson wrote:
>>
>> Have Django Oscar been used successfully with Mezzanine?
>>
>> I'm particularly interested in django-oscar-stores.
>>
>>
>>

-- 
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] Re: Does Cartridge have a module for GIS store locator?

2015-11-11 Thread Sam W
It's not too hard to build one yourself with google maps and django 
location field.

On Monday, 9 November 2015 17:46:00 UTC+13, Edward Henderson wrote:
>
> I'm looking for a module that handles GIS location of stores for a 
> product(s).
>
> I just want the user to be able to enter their address, zip code, city, 
> etc, and find the closest stores to their locations, and potentially 
> directions to the store.
>
> Regards,
>
> Ed
>

-- 
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: Do djanog-oscar and django-oscar-stores integrate with Mezzanine?

2015-11-11 Thread Stephen McDonald
On Thu, Nov 12, 2015 at 11:10 AM, Sam W  wrote:

> There's some stuff Cartridge doesn't do that naturally that Oscar might be
> able to. Stuff I've had trouble doing in cartridge includes:
> - Multiple currency.
> - Customer specific pricing.
> - Payment solutions that require a redirect rather than processing
> customer CC data on server.
> - Showing different product lists to different customers.
> - Quantity breaks in pricing.
>
> Cartridge seems intentionally implemented as a simple store, with a
> sensible-to-maintain array of features. It's fairly good at what it does,
> but for more complicated stuff, using something else seems like a better
> approach, and Oscar might be that something else, no?
>

FWIW as the creator of Cartridge, I think this is a good and fair
assessment.


>
> On Thursday, 12 November 2015 07:41:24 UTC+13, Neum Schmickrath wrote:
>>
>> I haven't heard of anything like this. Any reason you wouldn't want to
>> just build off of the already integrated shopping cart module, Cartridge
>> ?
>>
>> On Saturday, November 7, 2015 at 5:13:15 PM UTC-7, Edward Henderson wrote:
>>>
>>> Have Django Oscar been used successfully with Mezzanine?
>>>
>>> I'm particularly interested in django-oscar-stores.
>>>
>>>
>>> --
> 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.
>



-- 
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/d/optout.


[mezzanine-users] Re: Do djanog-oscar and django-oscar-stores integrate with Mezzanine?

2015-11-11 Thread Neum Schmickrath
I haven't heard of anything like this. Any reason you wouldn't want to just 
build off of the already integrated shopping cart module, Cartridge 
?

On Saturday, November 7, 2015 at 5:13:15 PM UTC-7, Edward Henderson wrote:
>
> Have Django Oscar been used successfully with Mezzanine?
>
> I'm particularly interested in django-oscar-stores.
>
>
>

-- 
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] Check if page has child pages

2015-11-11 Thread Neum Schmickrath
I have a layout I'm working on that has a sidebar that displays a sub-menu 
of the child pages of the current page being viewed. On category pages I 
can easily test if there are child categories by using {% if 
child_categories %} and then showing the sidebar. On pages is there a 
similar processor that I'm missing somehow? I don't want to display an 
empty sidebar if there won't be any links there.

-- 
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] Re: Is USE_SOUTH still default = True

2015-11-11 Thread Neum Schmickrath
No, as of version 4.0 of Mezzanine the internal Django migrations app is 
used for migrations. Use_South is not even set anymore I don't think. 

On Sunday, November 8, 2015 at 12:38:43 AM UTC-7, Edward Henderson wrote:
>
> The documentation says USE_SOUTH Default:True. Is that still the case? 
>

-- 
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] Re: Python 3 and fabric

2015-11-11 Thread Neum Schmickrath
Fabric requires Python version 2.5 - 2.7. and doesn't support 3.0 yet. From 
the fabric installation docs:


   - Fabric has not yet been tested on *Python 3.x* and is thus likely to 
   be incompatible with that line of development. However, we try to be at 
   least somewhat forward-looking (e.g. usingprint() instead of print) and 
   will definitely be porting to 3.x in the future once our dependencies do.


On Tuesday, November 10, 2015 at 12:42:03 PM UTC-7, Joshua Glenn wrote:
>
> I have installed mezzanine and deployed a working test website with it 
> (the hard way). But I wanted to check into the fabric deployment tools that 
> are included with mezzanine. But, I am using Python 3. Does fabric even 
> work with Py3?
>

-- 
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] Check if page has child pages

2015-11-11 Thread Danny

On 12/11/2015 5:22 AM, Neum Schmickrath wrote:
I have a layout I'm working on that has a sidebar that displays a 
sub-menu of the child pages of the current page being viewed. On 
category pages I can easily test if there are child categories by 
using {% if child_categories %} and then showing the sidebar. On pages 
is there a similar processor that I'm missing somehow? I don't want to 
display an empty sidebar if there won't be any links there.



The navigation menu from the left hand side of Mezzanine default uses this:

https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/templates/pages/menus/tree.html#L20

page.has_children_in_menu

Would this work?

There's also an attribute "has_children" set on the page in the 
page_menu template tag:


https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/templatetags/pages_tags.py#L84

I'm sure both of these might point you in the right direction.

Seeya. Danny.

--
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.