[Django]-ImportError for django.contrib.markup

5👍

I think that adding the django.contrib.markup app to your project gives you the ability to {% load markup %} in your templates (see the official Django docs). I think you’ll still need to install Markdown from PyPI to use it (sudo easy_install Markdown).

2👍

You also have to make sure you have Markdown for Python installed on your Python path for this to work.

0👍

I have the very same problem as you had today. Your solution works, compile it from the source rather than using easy_install. But I still not satisfied with that answer, why easy_install not work? We know django shell server works, but not production server right? The solution is very simple, you must restart apache. I don’t know why, but after you run service restart httpd (on centos), then the problem is gone.

Leave a comment