Flask启动时报错:ValueError: urls must start with a leading slash
启动flask时报错:
ValueError: urls must start with a leading slash
错误代码:
bp = Blueprint('cms',__name__,subdomain='cms',url_prefix='cms')
正确代码:
bp = Blueprint('cms',__name__,subdomain='cms',url_prefix='/cms')