0
的add_static_view和static_url我添加靜態觀點是這樣的:關於金字塔
config.add_static_view('CF_static', 'cistromeprimerscanner:templates/static', cache_max_age=604800)
當我想用在靜態目錄中的文件的模板文件,我需要寫這樣的,這是很長的:
${request.static_url('cistromeprimerscanner:templates/static/logo.png')}
我在想,爲什麼我不應該寫這樣的:
$(request.static_url("CF_static/logo.png")}
正如:
${request.route_path("CF_view")}
有沒有人有關於此的想法?謝謝!