1. 程式人生 > >python使用和註意

python使用和註意

red list perl python使用 ngs fig rail path configure

錯誤:

1.Your STATICFILES_DIRS setting is not a tuple or list; "

ImproperlyConfigured: Your STATICFILES_DIRS setting is not a tuple or list; perhaps you forgot a trailing comma?

解決方案:

找到settings.py文件,

把STATICFILES_DIRS=(os.path.join(BASE_DIR,‘static‘))

改為STATICFILES_DIRS=[(os.path.join(BASE_DIR,‘static‘))]

python使用和註意