Thank so much it worked.
Emily
On Friday, May 4, 2012, creecode wrote:
> Hello Emily,
>
> This is not a direct answer to your question. It looks like Tom has your
> answer. You will most likely want to move the {% load markup %} to near to
> top of your template. Generally loads only needs
doc:disable
auto-escaping
This will not be escaped: {{ data|safe }}
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/JtUzSEmy2X4J.
To post to this group,
#model
class Article(models.Model):
udate=models.DateTimeField(auto_now=True,auto_now_add=True)
markdown_content=models.TextField()
html_content=models.TextField(editable=False)
def save(self):
self.html_content=markdown(self.markdown_content)
Hello Emily,
This is not a direct answer to your question. It looks like Tom has your
answer. You will most likely want to move the {% load markup %} to near to
top of your template. Generally loads only needs to be done once at the
start of the template.
On Friday, May 4, 2012 5:55:28 AM
On Fri, May 4, 2012 at 1:55 PM, Emily Namugaanyi wrote:
> I am trying to display markdown in my html but it is returning a body
> with html tags:
> This is what is happening...
>
> code in the
>
>
>
>
>
>
> {% for guideline in guidelines %}
> {% load
I am trying to display markdown in my html but it is returning a body
with html tags:
This is what is happening...
code in the
{% for guideline in guidelines %}
{% load markup %}
Question: {{ guideline.question }}
Answer: {{
6 matches
Mail list logo