In django template, I am linking to css like this: <link href="..{% static 'css/style.css' %}" media="screen" rel="stylesheet" type="text/css" />
The baked output gives me exactly what I asked for which is: <link href="../static/css/main-foundation-style-v3.css" media="screen" rel="stylesheet" type="text/css" />
That works fine for each BuildableDetailView that is baked but requires me to change the path on the BuildableListView` to <link href="static/css/style.css" media="screen" rel="stylesheet" type="text/css" />
I do not have the optional build_path set in the BuildableListView class.
Also relevant: STATIC_ROOT = os.path.join(SITE_ROOT, "public", "static")
I think after doing more research I just need to learn more about what it is I'm trying to do...
Assuming the project is baked like ...
build_dir
- index.html
- detail_1
- index.html
- static
Using
..{% static 'css/style.css' %}
means thatbuild_dir/detail_1/index.html
finds the files inbuild_dir/static
just fine. Butbuild_dir/index.html
is looking for a directory abovebuild_dir