I know Apache One is adding
RewriteEngine On RewriteRule !(\.ico\.gif|\.png|\.jpe?g|\.css|\.js|\.php|\.eot|\.svg|\.ttf|\.woff|\.otf|^public/.*)$ index.php [nocase,last]
but how do I do it with Django, these rules
So, are you serving static files on a Django dev server?
In settings.py it seems to me you need:
settings.py
if DEBUG: import mimetypes mimetypes.add_type("application/font-woff", ".woff", True)
... from the information provided in these questions about SO:
The resource is interpreted as a font, but transmitted using an application such as MIME / x-font-woffDjango Development Server and MIME Types
Source: https://habr.com/ru/post/1497406/More articles:I just proved that the sieve of Eratosthenes is less effective than the trial unit? - performanceNodejs npm sets karma - node.jsReturn Value C # GeoCoordinate - c #What is the correct order of the previous vector in fitensemble? - matlabAnimated ImageIcon as a button - javaWeb search API data without using OData syntax - resthow to disable some problem in sonar performance? - sonarqubeNVI and devirtualization - c ++unused files are still showing in git status - gitXML Element Names and Attributes - xmlAll Articles