Django Markdown works in dev but not in prod -
i'm using flatpages app markdown , on (django) development server markdown works fine.
but when deployed on staging server apache/mod_python, markup vanish , see raw markdown formatting.
there's not difference between staging server , dev server, both runs ubuntu same packages installed (including python-markdown).
also there no errors @ all, doesn't work. i'm not sure start troubleshooting issue ..
this template code:
{% extends "base.html" %} {% load markup %} {% block content %} <h1>{{ flatpage.title }}</h1> <div class="page">{{ flatpage.content|markdown }}</div> {% endblock %}
i see @ least 1 flag: "there's not much difference between staging server , dev server ...". ahem.
i suggest going staging directory, make sure copy of python using exactly same 1 apache/mod_python using, , run dev server there. may interesting output.
in django/contrib/markup/templatetags/markup.py there following comment: "markdown, requires python-markdown library http://www.freewisdom.org/projects/python-markdown". it, in fact, exist in proper place?
we have debugging page dumps sys.modules can see modules coming where.
Comments
Post a Comment