[Fixed]-Django debug page layout is broken

1👍

Thanks all for your quick response, I just fixed this issue with following method:

Environment: Apache and WSGI

  1. Add following line to /etc/apache2/sites-enabled/000-default
Alias /static/ /path/to/mysite.com/static/
<Directory /path/to/mysite.com/static> 
    Require all granted
</Directory>
  1. Add following line to settings.py
STATIC_ROOT = BASE_DIR + '/static'
STATIC_URL = '/static/'
  1. Run python manage.py collectstatic and restart Apache

Leave a comment