DEBUG = True ################ STATICFILES ################ # A list of locations of additional static filesSTATICFILES_DIRS = ( os.path.join(BASE_DIR, "static"),) # The default file storage backend used during the build processSTATICFILES_STORAG
添加css样式文件 1.首先在app目录下创建static文件夹,如polls/static.django会自动找到放在这里的静态文件. AppDirectoriesFinder which looks for a "static" subdirectory in each of the INSTALLED_APPS STATICFILES_DIRS:This setting defines the additional locations the staticfiles app wi