Re: Module not callable (Practical Django Projects)

2008-08-26 Thread marsii
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

Re: Module not callable (Practical Django Projects)

2008-08-26 Thread James Bennett
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

Re: Module not callable (Practical Django Projects)

2008-08-26 Thread marsii
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,

Re: Module not callable (Practical Django Projects)

2008-08-24 Thread Christian Joergensen
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

Re: Module not callable (Practical Django Projects)

2008-08-24 Thread Cubells
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... --~--~---

Re: Module not callable (Practical Django Projects)

2008-08-24 Thread Cubells
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

Module not callable (Practical Django Projects)

2008-08-24 Thread marsii
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