Hi, I have same issue , I added the new setting in the default.py in my
root theme and in the first line I define the
register_setting(
name="TEMPLATE_ACCESSIBLE_SETTINGS",
editable=False,
default=("SITE_TAGLINE",),
append=True,
)
register_setting(
name="SITE_TAGLINE",
description="What's the site about?",
editable=True,
default="Storm Chasing Team",
append=True,
)
but after restart my web server in the admin panel on setting page I didn't
see new setting, In mezzanine documentation I read, after add new setting,
must some add the config to the INSTALLED_APPS, but I didn't understand !!!
NOTE
If you are using Django 1.7 or greater and your app is included in your
INSTALLED_APPS as an AppConfig (eg authors.apps.MyCrazyConfig), Mezzanine
won’t import your defaults.py automatically. Instead you must import it
manually in your AppConfig’s ready() method.
On Wednesday, April 17, 2013 at 9:23:21 PM UTC+4:30, Josh Cartmell wrote:
>
> Glad I could help!
>
>
> On Tue, Apr 16, 2013 at 3:18 PM, bouhram el mahdi <[email protected]
> <javascript:>> wrote:
>
>> Thank you Josh,
>>
>> Your answer solved my problem. i highly appreciate it :)
>>
>>
>> On Tuesday, April 16, 2013 3:11:17 PM UTC-7, Josh Cartmell wrote:
>>
>>> You need to also add the new setting to TEMPLATE_ACCESSIBLE_SETTINGS (
>>> http://mezzanine.jupo.org/docs/configuration.html#
>>> template-accessible-settings). You should register that in your
>>> defaults.py with append=True and add the new name to the new setting to
>>> it. You can see an example of how to do it here:
>>> https://github.com/stephenmcd/cartridge/blob/master/
>>> cartridge/shop/defaults.py#L54
>>>
>>>
>>> On Tue, Apr 16, 2013 at 3:06 PM, bouhram el mahdi <[email protected]>
>>> wrote:
>>>
>>>>
>>>>
>>>>
>>>> *i have a question about Configuration, i have implemented multiple
>>>> websites and would like to add custom settings to them like each one with
>>>> its own address, phone, etc I used register_setting function in the
>>>> defaults.py module inside one of my app and i can change the SETTING (e.g
>>>> ADDRESS) from the admin . Unfortunately, when i am calling the setting
>>>> within my template like so {{ settings.ADDRESS }} i get nothing, i thought
>>>> that mezzanine.conf.context_processors.py
>>>> <http://mezzanine.conf.context_processors.py> will take care of it. in my
>>>> app, i am importing settings from mezzanine.conf and calling
>>>> settings.use_editable() in my view, still i can’t get {{ settings.ADDRESS
>>>> }} to show up.*
>>>>
>>>> *Any thoughts would be very helpful, 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 [email protected].
>>>>
>>>> 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 [email protected] <javascript:>.
>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.