Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated warnings when running "cactus build" #8

Open
abma opened this issue Jan 30, 2017 · 2 comments
Open

deprecated warnings when running "cactus build" #8

abma opened this issue Jan 30, 2017 · 2 comments

Comments

@abma
Copy link

abma commented Jan 30, 2017

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/)

@liberaltech
Copy link

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 }}

@mustermania
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants