Bryce Durham
Bryce Durham
After double checking, environment variables are successfully passed to the spawned process (contrary to my statement above). Also, it seems that this is likely an issue on Windows and Linux...
I seem to have stumbled upon the solution to this problem. In`spawn` mode, the `application` object is serialized/pickled along with all its references to Django. This fails deep in Django...
Font mimetypes should be updated to reflect this change. Current workaround is to subclass font types, use `add_type`, and overwrite `filetype.types.FONT` with a new tuple to ensure correct behavior of...
It is not actually possible to subclass because #165
Workaround for the workaround: ``` import re for instance in filetype.font_matchers: match = re.match(r'^application/font-(\w+)$', instance.mime) suffix = match.group(1) instance.__class__.mime = property(lambda self: f'font/{suffix}') ```
Another option is to use `sys.modules['filetype.types']`
I experience this also. Any indication of the cause or solution?