On Mon, 2008-11-24 at 15:27 -0800, waltbrad wrote:
[...]
> When I try to run the server I get this error:
> 
>   File "C:\cms\..\cms\search\models.py", line 7, in SearchKeyword
>     page = models.ForeignKey(FlatPage, edit_inline=models.STACKED,
> AttributeError: 'module' object has no attribute 'STACKED'
> 
> I really tried the search function in this forum and also tried to
> Google for this and couldn't find a solution. As far as what I can
> tell there is nothing wrong with the STACKED attribute.

James' book was written for Django 0.96. There were changes between 0.96
and 1.0. In particular, the admin structure was improved and changed in
backwards-incompatible ways. So if you're working through a book that
was published before 1.0 was released, you'll also need to read the
porting guide that is part of the 1.0 documentation.

Also, if you see an error like this, check the Django documentation to
see what the problem might be (it's always possible there could just be
a typo in a book, for example -- although James' book is relatively free
of those). If you do that, you'll see that edit_inline is not an option
on Field classes, which would be a clue that something has changed.

Regards,
Malcolm


> > 
> 


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