Re: [mezzanine-users] Overriding ADMIN_MENU_ORDER

2015-12-29 Thread Ken Bolton
Hi Joel,

Assuming everything has been set up correctly, your projects' settings.py
should trump all except local_settings.py.

Do you get the same results in a new virtualenv with a clean installation
of Mezzanine?

-ken

On Tue, Dec 29, 2015 at 11:34 AM, Joel Gwynn  wrote:

> OK, so I put in some print statements: one in the mezzanine core
> defaults.py right after the call to register_settings(), and the next one
> in my settings.py right after the code below.  It looks like settings.py is
> being executed before defaults.py, so my setting is getting overriden.  Is
> that how it's supposed to be happening?
>
> On Friday, December 25, 2015 at 10:47:26 AM UTC-5, Joel Gwynn wrote:
>>
>> I don't know how much more information I can add.  In my settings.py, I
>> uncommented the menu order and added a section like so:
>>
>> ADMIN_MENU_ORDER = (
>> ("Content", ("pages.Page", "blog.BlogPost",
>>"generic.ThreadedComment", (_("Media Library"), "fb_browse"),)),
>> ("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
>> ("Users", ("auth.User", "auth.Group",)),
>> ("Other", ("web.views.importer",)),
>> )
>>
>> But my "Other" heading simply doesn't show up.  I know the file is being
>> processed because if I add random text I get a syntax error.  It just has
>> no effect.
>>
>> Merry Christmas, btw :)
>>
>> On Friday, December 25, 2015 at 3:15:05 AM UTC-5, Stephen McDonald wrote:
>>>
>>> Works fine for me, you'll need to be more specific.
>>>
>>>
>>> On Fri, Dec 25, 2015 at 5:16 AM, Joel Gwynn  wrote:
>>>
 in my site settings.py, I uncommented out the ADMIN_MENU_ORDER section
 and added a menu section, but it isn't doing anything.  Instead, it's using
 the one from mezzanine core defaults.py which I'd rather not mess with.
 Did I miss a step?

 TIA,
 Joel

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

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

-- 
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] Overriding ADMIN_MENU_ORDER

2015-12-29 Thread Joel Gwynn
OK, so I put in some print statements: one in the mezzanine core 
defaults.py right after the call to register_settings(), and the next one 
in my settings.py right after the code below.  It looks like settings.py is 
being executed before defaults.py, so my setting is getting overriden.  Is 
that how it's supposed to be happening?

On Friday, December 25, 2015 at 10:47:26 AM UTC-5, Joel Gwynn wrote:
>
> I don't know how much more information I can add.  In my settings.py, I 
> uncommented the menu order and added a section like so:
>
> ADMIN_MENU_ORDER = (
> ("Content", ("pages.Page", "blog.BlogPost",
>"generic.ThreadedComment", (_("Media Library"), "fb_browse"),)),
> ("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
> ("Users", ("auth.User", "auth.Group",)),
> ("Other", ("web.views.importer",)),
> )
>
> But my "Other" heading simply doesn't show up.  I know the file is being 
> processed because if I add random text I get a syntax error.  It just has 
> no effect.
>
> Merry Christmas, btw :)
>
> On Friday, December 25, 2015 at 3:15:05 AM UTC-5, Stephen McDonald wrote:
>>
>> Works fine for me, you'll need to be more specific.
>>
>>
>> On Fri, Dec 25, 2015 at 5:16 AM, Joel Gwynn  wrote:
>>
>>> in my site settings.py, I uncommented out the ADMIN_MENU_ORDER section 
>>> and added a menu section, but it isn't doing anything.  Instead, it's using 
>>> the one from mezzanine core defaults.py which I'd rather not mess with.  
>>> Did I miss a step?
>>>
>>> TIA,
>>> Joel
>>>
>>> -- 
>>> 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.
>>>
>>
>>
>>
>> -- 
>> 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.


Re: [mezzanine-users] Overriding ADMIN_MENU_ORDER

2015-12-25 Thread Stephen McDonald
Works fine for me, you'll need to be more specific.


On Fri, Dec 25, 2015 at 5:16 AM, Joel Gwynn  wrote:

> in my site settings.py, I uncommented out the ADMIN_MENU_ORDER section and
> added a menu section, but it isn't doing anything.  Instead, it's using the
> one from mezzanine core defaults.py which I'd rather not mess with.  Did I
> miss a step?
>
> TIA,
> Joel
>
> --
> 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.


Re: [mezzanine-users] Overriding ADMIN_MENU_ORDER

2015-12-25 Thread Joel Gwynn
I don't know how much more information I can add.  In my settings.py, I 
uncommented the menu order and added a section like so:

ADMIN_MENU_ORDER = (
("Content", ("pages.Page", "blog.BlogPost",
   "generic.ThreadedComment", (_("Media Library"), "fb_browse"),)),
("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
("Users", ("auth.User", "auth.Group",)),
("Other", ("web.views.importer",)),
)

But my "Other" heading simply doesn't show up.  I know the file is being 
processed because if I add random text I get a syntax error.  It just has 
no effect.

Merry Christmas, btw :)

On Friday, December 25, 2015 at 3:15:05 AM UTC-5, Stephen McDonald wrote:
>
> Works fine for me, you'll need to be more specific.
>
>
> On Fri, Dec 25, 2015 at 5:16 AM, Joel Gwynn  > wrote:
>
>> in my site settings.py, I uncommented out the ADMIN_MENU_ORDER section 
>> and added a menu section, but it isn't doing anything.  Instead, it's using 
>> the one from mezzanine core defaults.py which I'd rather not mess with.  
>> Did I miss a step?
>>
>> TIA,
>> Joel
>>
>> -- 
>> 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.
>>
>
>
>
> -- 
> 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.