Re: [mezzanine-users] mezzanine.accounts

2016-10-25 Thread Ryne Everett
I can't reproduce with a vanilla mezzanine site.

On 10/25/2016 12:08 AM, Akhlaq Rao wrote:
> As soon as I uncomment the mezzanine.accounts app I see the following
> error. Is this bug reported?
>
> django.urls.exceptions.NoReverseMatch: 'rest_framework' is not a
> registered namespace
>
> Unhandled exception in thread started by  check_errors..wrapper at 0x10951abf8>
> Traceback (most recent call last):
>   File
> "/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/urls/base.py",
> line 77, in reverse
> extra, resolver = resolver.namespace_dict[ns]
> KeyError: 'rest_framework'
>
>   File
> "/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/mezzanine/accounts/urls.py",
> line 29, in 
> url("^%s%s$" % (LOGIN_URL.strip("/"), _slash),
>   File
> "/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/utils/functional.py",
> line 111, in __wrapper__
> res = func(*self.__args, **self.__kw)
>   File
> "/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/urls/base.py",
> line 87, in reverse
> raise NoReverseMatch("%s is not a registered namespace" % key)
>
> django.urls.exceptions.NoReverseMatch: 'rest_framework' is not a
> registered namespace
> -- 
> 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] How to add extra attributes to RICHTEXT_ALLOWED_ATTRIBUTES in settings.py

2016-10-25 Thread Ryne Everett
I'd do this in an app's `defaults.py`:

from mezzanine.conf import register_setting

register_setting(
name='RICHTEXT_ALLOWED_ATTRIBUTES',
editable=False,
append=True,
default=('placeholder', 'required'),
)

On 10/23/2016 08:19 PM, John Barham wrote:
> I want to *add* the attributes ['placeholder', 'required'] to the
> default RICHTEXT_ALLOWED_ATTRIBUTES list. How do I do that in my
> settings.py?
>
> I'm running Mezzanine 4.2.0 and Django 1.10.2.
>
> Thanks, John
> -- 
> 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.