I add the static view like this:
config.add_static_view('CF_static', 'cistromeprimerscanner:templates/static', cache_max_age=604800)
When I want to use a file in static directory in template file, I need to write like this, which is very long :
${request.static_url('cistromeprimerscanner:templates/static/logo.png')}
I was wondering why I shouldn't write it like this:
$(request.static_url("CF_static/logo.png")}
Just as:
${request.route_path("CF_view")}
Does anyone have ideas about this? Thanks!