INNER CODE UNIT · Python

default

vsdudakov/fastadmin · fastadmin/api/frameworks/flask/app.py:16

    def default(self, o):
        if isinstance(o, date | time):
            return o.isoformat()
        return super().default(o)


app = Blueprint(
    "FastAdmin App",
    __name__,
    url_prefix="",
    static_url_path="/static",
    static_folder=ROOT_DIR / "static",
)
app.register_blueprint(views_router)
app.register_blueprint(api_router)


@app.errorhandler(Exception)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…