trentm / django-markdown-deux

A django app that provides Markdown-related template tags using the python-markdown2 library.
Other
288 stars 62 forks source link

Fix for Python3 #6

Closed plumdog closed 10 years ago

plumdog commented 10 years ago

I was getting errors on

{% load markdown_deux_tags %}

telling me it was getting an import error on "force_unicode".

Some digging in the docs led me to: https://docs.djangoproject.com/en/1.6/ref/utils/

Which said:

force_unicode Historical name of force_text(). Only available under Python 2.

So based on the use of the word "historical", I changed it to use force_text.

migueldvb commented 10 years ago

:+1:

trentm commented 10 years ago

Thanks! Sorry I didn't notice this PR earlier.

trentm commented 10 years ago

Published in django-markdown-deux 1.0.5

https://pypi.python.org/pypi/django-markdown-deux/

plumdog commented 10 years ago

No problem! Thanks for accepting the PR and for making a awesome project.