Monday, January 17, 2022

[flask][Resolved] ValueError: urls must start with a leading slash

Error message:

ValueError: urls must start with a leading slash

Source

from flask import Flask, Blueprint
mod = Blueprint('apis', __name__, url_prefix='api/valuations')

Correction

from flask import Flask, Blueprint mod = Blueprint('apis', __name__, url_prefix='/api/valuations')

No comments :

Post a Comment