Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Extra "[]" characters appearing before login fields for django admin

On my Django admin login page I see extra "[]" before the username and password fields:

screenshot of the extra brackets

and I really cannot figure out where they are coming from.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I’m using Django v5.1.3 and I haven’t made any extra customisations to the django admin, so it should only be loading the default CSS and JS that the admin site natively comes with.

It happens on both Brave and Firefox browsers.

I’d really like to get rid of these, but have no idea where to start… let me know if any extra code/settings would be helpful to figure out.

Any help much appreciated.

Edit 1:
You can see this ‘in action’ here: https://veghab.alexlittle.net/admin/login/?next=/admin/

>Solution :

Based on the square brackets bug thread [Django-forum], it appears to be a bug in CPython for Python-3.12 (see issue #117482 of CPython [GitHub]).

You thus can downgrade to , wait for the bug to be fixed by CPython, or use a different WSGI server [Django-doc], since mod_wsgi is the part that introduces the square brackets.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading