Hi!

>>         self.body_html = markdown(self.body)     <-- LINE 76 ERROR
>
> The imported name 'markdown' should be a function, yet python thinks
> it's a module. What is it?
>
> Try importing markdown and running the above snippet outside of django
> in a python shell. Does that work?

No, it does not.

But when I changed the import line to: from markdown.markdown import
markdown
then THAT error disappeared.

I looks that I made something wrong when I installed the markdown
files.

In '/usr/lib/python/site-packages' I have a link:
markdown -> /home/markku/django/markdown-1.7

and in '/home/markku/django/markdown-1.7' is file a file
'markdown.py', containing a function 'markdown'. So the same name
'markdown' is in three places!

regards
Markku

--~--~---------~--~----~------------~-------~--~----~
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