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 d
2008/8/26 marsii <[EMAIL PROTECTED]>:
> But I have the same error still. :-(
I'll bet money that you have this:
import markdown
When the book tells you to do this:
from markdown import markdown
There's a very important difference.
--
"Bureaucrat Conrad, you are technically correct -- the b
Hi!
> En/na marsii ha escrit:> excerp_html = models.TextField(editable=False,
> blank=True)
> _
> ↓
> excerpt_html = models.TextField(editable=False, blank=True)
> You have only that mistake in the code you've attached...
Thanks! I did compare the text in the book with my code,
marsii wrote:
> I working whit the book Practical Django Project and have a problem
> with th weblog example.
>
> (I have Django revision 8511.
>
> I got the following error when I try to add an entry:
> ---
> TypeError at /admin/coltrane/entry/add
En/na marsii ha escrit:
> excerp_html = models.TextField(editable=False, blank=True)
>
_
↓
excerpt_html = models.TextField(editable=False, blank=True)
You have only that mistake in the code you've attached...
Your models.py works on my system.
Cheers...
--~--~---
En/na marsii ha escrit:
> Hi!
> I working whit the book Practical Django Project and have a problem
> with th weblog example.
>
> (I have Django revision 8511.
>
> I got the following error when I try to add an entry:
> ---
> TypeError at /admin/co
Hi!
I working whit the book Practical Django Project and have a problem
with th weblog example.
(I have Django revision 8511.
I got the following error when I try to add an entry:
---
TypeError at /admin/coltrane/entry/add/
'module' object is not
7 matches
Mail list logo