Django基礎,Day9 - 靜態文件目錄與路徑設置說明(eg. images, JavaScript, CSS)

靜態文件路徑設置官方說明 1. Make sure that django.contrib.staticfiles is included in your INSTALLED_APPS. 2. In your settings file, define STATIC_URL, for example:    1 STATIC_URL  =  '/static/' 3. Store your sta
相關文章
相關標籤/搜索