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

Invalid filter: 'markdown' django-markdown-deux #32

Open
ZixiSu opened this issue Sep 21, 2018 · 1 comment
Open

Invalid filter: 'markdown' django-markdown-deux #32

ZixiSu opened this issue Sep 21, 2018 · 1 comment

Comments

@ZixiSu
Copy link

ZixiSu commented Sep 21, 2018

Before I explain my issue, let me tell you some basics of my system:
windows 10
python 3.6
django 1.9

I followed the documention of 'django-markdown-deux', from it, I learned it has four steps to be implemented.

Firstly: pip3 install django-markdown-deux

Secondly: add 'markdown_deux' into your INSTALLED_APP

Thirdly: add {% load markdown_deux_tags %} into your header.html

Finally: add {{ post.body|markdown }}, as I want to transfer post.body to markdown

{% extends "personal/header.html" %}
{% block content %}

<h3><a href="/blog/{{post.id}}">{{ post.title }}</a></h3>
<h6> on {{ post.date }}</h6>

<div class = "container">
	{{ post.body|markdown }}
</div>
<br><br>
{% endblock %}

after doing this, I have "Error during template rendering"

In template F:\django\mysite_1\blog\templates\blog\post.html, error at line 8

Invalid filter: 'markdown'
@Baker
Copy link

Baker commented Oct 31, 2018

Hey @SecretCat,

The only time I experience this is when I am not loading the Markdown Deux tags,

{% load markdown_deux_tags %}

Can you post your header.html contents?

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

2 participants