Django website and accessing assets

Hey hello,

I am building my website in the Djano framework and I had some issues targetting the asset forlder that is generated when exporting a cables patch. In case anyone has this same issue, I thought to make it public and show the solution.

Jinja is used to work between the django framework and the html files. In order to link the asset folder with jinja you can write this piece of code in this section of the cables patch settings:

Where the option prefixAssetPath is targeted with the url generated with jinja.

In this case the folder Assets is located in the portfolio folder. And the code in jinja would be:
“{% static ‘portfolio/’ %}”