can't see blog post body

15 views
Skip to first unread message

Alex Djioev

unread,
Nov 22, 2009, 8:41:34 AM11/22/09
to Django Basic Apps
Hi everyone,

I am trying to embed basic apps into my application and I bumped to
the problem that I can't see my post body. I checked post_details.html
template and found out that it says
<code>
{% oembed %}
{{ object.body_markup|render_inlines|pygmentize|safe }}
{% endoembed %}
<code>

In Post model there is 'body' field but I can't see 'body_markup'. How
does it work and do I miss any particular libs?

In my settings I have 'django.contrib.markup' and 'django_markup'
installed.

Cheers Alex

jnh

unread,
Nov 30, 2009, 11:32:38 AM11/30/09
to Django Basic Apps
Hi Alex,

I was having the same problem. See this post, the solution works for
me and uses markdown instead of _markup:
http://groups.google.com/group/django-basic-apps/browse_thread/thread/e7f73e0fabce7f24

also:
http://www.freewisdom.org/projects/python-markdown/Django

cheers!

nick h

jms

unread,
Dec 8, 2009, 12:22:23 PM12/8/09
to Django Basic Apps
Hi,

I am having a similar problem. Just wondering if anyone had an answer
to this issue...

Thanks,
jms.

On Nov 22, 8:41 am, Alex Djioev <dji...@gmail.com> wrote:

flowpoke

unread,
Dec 11, 2009, 7:27:50 PM12/11/09
to Django Basic Apps
im having the same issue.

am feeling this is related to django svn (which is what im using)

Alexandre Djioev

unread,
Dec 12, 2009, 10:04:51 PM12/12/09
to django-b...@googlegroups.com
Hi everyone

I remember a while ago I was looking at Django Mingus http://github.com/montylounge/django-mingus
(blog engine based on basic-app) and found out that this line with object.body_markup wasn't changed and was working.
So maybe its a good place to see why it works there and why it doesn't in basic-app.

Cheers Alex


--

You received this message because you are subscribed to the Google Groups "Django Basic Apps" group.
To post to this group, send email to django-b...@googlegroups.com.
To unsubscribe from this group, send email to django-basic-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-basic-apps?hl=en.





--
Cheers, Alex

sketch22

unread,
Dec 12, 2009, 10:45:36 PM12/12/09
to Django Basic Apps
The [official][1] checkout of the basic apps blog does not have an
attribute "body_markup" If you examine the models.py you'll know for
sure. If you want your blog to be rendered with markdown you should do
it using the markdown filter like so:

{% load markup %}
{{ object.body|markdown }}

[1]:http://github.com/nathanborror/django-basic-apps
Reply all
Reply to author
Forward
0 new messages