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')

 

posted @ 2020-02-20 17:11  小呆丶  阅读(1297)  评论(0编辑  收藏  举报