CactusBlog icon indicating copy to clipboard operation
CactusBlog copied to clipboard

deprecated warnings when running "cactus build"

Open abma opened this issue 8 years ago • 2 comments

index.html: {{ STATIC_URL }} is deprecated, use {% static '/static/path/to/file' %} instead. {{ ROOT_URL }} is deprecated, use {% url '/page.html' %} instead.

(+ the same errors in posts/)

abma avatar Jan 30 '17 00:01 abma

I was also seeing these errors. It took me a little while to figure out a fix but here it is incase someone else is still getting errors.

base.html

{{ STATIC_URL }}/css/master.css --> {% static '/css/master.css' %}

The favicon.ico file doesn't exist so I disabled it, heres what it would look like:

{{ STATIC_URL }}/favicon.ico --> {% static '/favicon.ico' %}

index.html

{{ ROOT_URL }}/{{ post.path }} --> /{{ post.path }}

post.html

{{ ROOT_URL }}/{{ prevPost.path }} --> /{{ prevPost.path }} {{ ROOT_URL }}/{{ nextPost.path }} --> /{{ nextPost.path }}

liberaltech avatar Mar 17 '17 23:03 liberaltech

i am getting some odd behavior with post... i updated my path to post.path but it is generating the URLs as post/post/.html instead of post/.html... anyone else have this issue?

mustermania avatar Sep 07 '17 00:09 mustermania