Django Admin Widget Search Permissions and Groups Missing

Django 1.6.2 admin has a widget for searching and selecting permissions for the user model. The widget looks like this. Permission and Group Widget

I did not update the version of Django or anything else, but noticed that the widget was missing. It works on Apache with mod_wsgi before and now. Now widget

Current widget

Any input or directions on why this happened? Thank you

+6
source share
4 answers

This problem disappeared on its own. As already mentioned in the question, there were no changes in the code / project. I suspect this is a problem with permissions on static files. There was no time to try to play it again. Will be updated if I come across this and any solutions. Thanks @ cdvv7788 and Simon.

0
source

I had the exact same problem, the exact same missing widgets . js, images, css were not sent to the admin panel. After more than 48 hours of research and queries, I had enough and got into my nginx/sites-available/django conf file and with great zeal, I deleted # Proxy the static assests for the Django Admin panel location /static/admin { alias /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin/; } # Proxy the static assests for the Django Admin panel location /static/admin { alias /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin/; } Guess that :-) All my problems are gone and everything works fine in the admin panel. This script was there by default. Maybe I took something wrong, but I had it.

This problem went away on its own.

Probably some OP had the same problem. But thanks for sharing the couse screenshots, otherwise I could not distinguish this question from other similar posts.

0
source

I know that the problem with OP was resolved, but for reference only, I had the same problem as when using Cloudflare Rockerloader for my site.

This seemed to interfere with the javascript code and the widgets did not load correctly. Disabling Rocketloader fixed the problem.

0
source

Apache is the web server, and Django is the application server.

It is very important to remember this. Django provides us with a development server, but as soon as debugging mode is turned off, it removes unnecessary burdens on the shoulders of processing statics and media files. To do this, we need to configure our Nginx / Apache servers.

Django is very heavy compared to other web servers, so you need to use web servers to use statistics / environments in your production environment.

The problem here is that your statics returns 404 not found. Please configure your web server to serve / static url / from / static root / your application.

0
source

Source: https://habr.com/ru/post/981320/


All Articles