Using the Adminlte template, return render (Request, ' adminlte/index.html ') reported the following error and the page rendering exception, CSS has no effect:
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://127.0.0.1:8000/host/index/plugins/ Icheck/flat/blue.css ".
Error:
Reason:
Problem solved, in fact, JS file did not find, the 200 564 is deceptive, HTML file inside the path is wrong. Reference to the https://segmentfault.com/q/1010000000652054
Processing methods
Copy the static folder package from the Dist, plugins, and other errors to the static directory
Configuring in settings.py
Static_url = '/static/'
Staticfiles_dirs = (
Os.path.join (Base_dir, ' static '),
)
Then modify the relative paths of static files in index.html, such as dist and plugins, etc.
and
and
MIME type issue occurs when Django uses static files such as Js,css