def setup(app):
    """Setup autodoc."""
    # Fix for documenting models.FileField
    from django.db.models.fields.files import FileDescriptor
    FileDescriptor.__get__ = lambda self, *args, **kwargs: self
    import django
    django.setup()
    app.connect('autodoc-skip-member', skip)
    app.add_stylesheet('_static/custom.css')
def setup ( app ) : from django . db . models . fields . files import FileDescriptor FileDescriptor . __get__ = lambda self , * args , ** kwargs : self import django django . setup ( ) app . connect ( 'autodoc-skip-member' , skip ) app . add_stylesheet ( '_static/custom.css' )
Setup autodoc.