Den 08/10/2014 kl. 06.04 skrev Petar Pilipovic <[email protected]>:

> Hi all, I am currently under going a blog tutorial from 
> http://matthewdaly.co.uk/blog/2014/01/02/django-blog-tutorial-the-next-generation-part-2/,
>  and I am stuck whit makrdown, I am aware that Django not supporting it any 
> more, but to keep things short I am geting this error.
> 
> TemplateSyntaxError: 'custom_markdown' is not a valid tag library: Template 
> libr
> ary custom_markdown not found, tried 
> django.templatetags.custom_markdown,django.
> contrib.admin.templatetags.custom_markdown,django.contrib.staticfiles.templateta
> gs.custom_markdown

Your problem is that django.contrib.marup was removed as of Django 1.6 
(https://docs.djangoproject.com/en/1.5/internals/deprecation/#id2). You can 
install an external module, e.g. django_markup from 
https://github.com/bartTC/django-markup. Then add 'django_markup' to 
INSTALLED_APPS and use it in your templates like this:

{% load markup_tags %}
{{ my_markup_text|apply_markup:"markdown" }}


Erik

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/830EB6F6-2DF8-4D3F-A855-468F83B8841C%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to