Hi,
I've got a Mezzanine site up and running and all seems to be going well,
except that the add link button in the WYSIWYG admin interface isn't
working. In the browser's developer tools I see a 500 Internal Server Error
and in the logs, the following Traceback:

[Fri Mar 11 20:32:21 2016] [error] Internal Server Error:
/displayable_links.js
[Fri Mar 11 20:32:21 2016] [error] Traceback (most recent call last):
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/django/db/models/base.py",
line 401, in __init__
[Fri Mar 11 20:32:21 2016] [error]     rel_obj = kwargs.pop(field.name)
[Fri Mar 11 20:32:21 2016] [error] KeyError: 'site'
[Fri Mar 11 20:32:21 2016] [error]
[Fri Mar 11 20:32:21 2016] [error] During handling of the above exception,
another exception occurred:
[Fri Mar 11 20:32:21 2016] [error]
[Fri Mar 11 20:32:21 2016] [error] Traceback (most recent call last):
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/django/db/models/base.py",
line 406, in __init__
[Fri Mar 11 20:32:21 2016] [error]     val = kwargs.pop(field.attname)
[Fri Mar 11 20:32:21 2016] [error] KeyError: 'site_id'
[Fri Mar 11 20:32:21 2016] [error]
[Fri Mar 11 20:32:21 2016] [error] During handling of the above exception,
another exception occurred:
[Fri Mar 11 20:32:21 2016] [error]
[Fri Mar 11 20:32:21 2016] [error] Traceback (most recent call last):
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/django/core/handlers/base.py",
line 149, in get_response
[Fri Mar 11 20:32:21 2016] [error]     response =
self.process_exception_by_middleware(e, request)
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/django/core/handlers/base.py",
line 147, in get_response
[Fri Mar 11 20:32:21 2016] [error]     response = wrapped_callback(request,
*callback_args, **callback_kwargs)
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/mezzanine/core/views.py",
line 192, in displayable_links_js
[Fri Mar 11 20:32:21 2016] [error]     for url, obj in
Displayable.objects.url_map(for_user=request.user).items():
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/mezzanine/core/managers.py",
line 366, in url_map
[Fri Mar 11 20:32:21 2016] [error]     home = self.model(title=_("Home"))
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/django/db/models/base.py",
line 408, in __init__
[Fri Mar 11 20:32:21 2016] [error]     val = field.get_default()
[Fri Mar 11 20:32:21 2016] [error]   File
"/opt/anaconda/anaconda3/lib/python3.5/site-packages/django/db/models/fields/related.py",
line 906, in get_default
[Fri Mar 11 20:32:21 2016] [error]     if isinstance(field_default,
self.remote_field.model):
[Fri Mar 11 20:32:21 2016] [error] TypeError: isinstance() arg 2 must be a
type or tuple of types
[Fri Mar 11 20:32:21 2016] [error]

I'm not too sure what to make of this, and apologies if it's a Django
misconfiguration, but can anyone shed any light? I'm using Django 1.9.2,
Mezzanine 4.1.0 and Python 3.5.1.
Cheers,
Christian

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

Reply via email to