问题
When I use Pelican to create a static webpage.
CRITICAL: SimplerXMLGenerator instance has no attribute '_write'
someone says this function has been removed from django: https://github.com/django/django/blob/master/django/utils/xmlutils.py
really? And how to fix this?
Thanks!
回答1:
_write
comes from the python stdlib xml.sax.saxutils.XMLGenerator
. Something must be overriding the built-in xml
library. IIRC, PyXML
used to do that.
PS: Not entirely related but pelican uses standalone version of feedgenerator
来源:https://stackoverflow.com/questions/29873161/simplerxmlgenerator-has-no-attribute-write