raise ImproperlyConfigured("The %s setting must be a list or a tuple. " % setting)

解决过程:

完全按照书来抄的代码,结果写成了这样:

raise ImproperlyConfigured(

其实只要把'bootstrap4'这行加在原来的INSTRALLED_APPS里面就行,如下图:

raise ImproperlyConfigured(

你可能感兴趣的:(raise ImproperlyConfigured("The %s setting must be a list or a tuple. " % setting))