简体   繁体   中英

Django Debug Toolbar style is broken

I have installed django debug-toolbar, it can fetch the css and js but it still shows debug toolbar like below and also shows this at the end of the page instead of nearby, there is not js error in console. Any ideas?

在此处输入图片说明

I was having this exact same issue. You don't need to switch to serving files locally, using S3 to serve your static files works just fine.

In my case (and likely in yours), you just need to run:

$ python manage.py collectstatic

That will update the static files—adding the files that the Debug Toolbar needs to render its styling correctly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM