Please excuse my apparent inability to figure out local server issues.
I would simply like to use Markdown to format text in my Django app:
* I have Django setup locally (OS X), with 'django.contrib.markup'
added to my INSTALLED_APPS.
* I installed python-markdown by following the official instructions
at http://www.freewisdom.org/projects/python-markdown/
* I tested the installation of markdown by going to a command line,
and typing the following without errors:

$python
>>> import markdown

I start getting errors when I try and apply the actual filter to
content in my template. In this case, I'm trying to apply markdown to
the body text of my flat page template (simplified template below):

{% load markup %}
{{ flatpage.content|markdown }}

When I load that page, I get the following error:

AttributeError at /test/
'module' object has no attribute 'markdown'
Exception Location: ... /python2.4/site-packages/django/contrib/markup/
templatetags/markup.py (i added the dots to shorten the path)

I assumed at first the issue was markdown.py wasn't on my PYTHONPATH,
but after double-checking it should be fine. So I guess my questions
are, what is an AttributeError? Is it simply a case of python/django
not being able to locate the necessary files?

Any help or suggestions would be much appreciated, thanks so much in
advance.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to