-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a plugin triggers bad request (HTTP 400), showing <django.utils.functional.__proxy__ object at 0x1eed4d0>
error dialog
#1766
Comments
The error is triggered by I wonder why it returns the string Does anyone have an idea? |
Removing the wrapping I wonder whether this is a bug of django.utils.functional doing some weird lazy translation stuff with this string and then fails. |
I can clearly reproduce this issue now on the django shell:
|
It should use On a sidenote, in case you haven't found your initial issue, you have |
According to the comments in
While the django-cms documentation suggests:
Correcting the configuration to use the full ISO language code for both ( So a proper solution to this issue is still needed and is very likely to use |
Correct, my suggestion above was to fix your setup in the meantime with a hotfix. This still needs to be fixed in the CMS. |
Ok, so what still confuses me is that there seem to be different ideas which kind of language code should be used: django documentation, settings → LANGUAGES:
This collides with the comment in generated
The URL references ISO style language codes ( |
First of all, that list linked is not an ISO list, it's a mix between ISO 639 and RFC 4646 (which is good, since that's basically how browsers/HTTP work). Technicalities aside, both are correct. However But to your question which one should be used: Always use the more generic ( |
I'm getting the same cryptic error: Any work-arounds for this (except for assigning super-user to all users)? I can reproduce this at will, if I can help. |
When trying to add a plugin to a placeholder of a page, a browser error dialog pops up with the message:
<django.utils.functional.__proxy__ object at 0x1eed4d0>
The browser console shows a bad HTTP POST request (400) to
/admin/cms/page/4/add-plugin/
The corresponding JavaScript backtrace of the browser console triggering this request is:
Some probably related settings:
There are no non-ASCII values in the config (or somewhere else) which could trigger lazy translation related issues.
No errors are logged by this bad POST request on the server side (Apache's error_log).
Using:
python-2.7
django-1.4.5
django-cms-2.4.1
The text was updated successfully, but these errors were encountered: