oTree Forum >

Include CSS/JS file from folder other than _static

#1 by fabsi (edited )

Hi there,

Is it possible to include a CSS or JS file from a folder other than "_static"?
If I put a file "app_style.css" inside the "_static" folder, I can use it in the HTML with
<link rel="stylesheet" href="{{ static 'app_style.css' }}">.

I'd like to reference a CSS file located inside the directory of an oTree app.
Is there a way to achieve this?

Thank you very much.

Write a reply

Set forum username