I have a class called Raw which extends model. Much like every other
class. Except, i'm using the method on this page to connect to a
different DB.  In the admin tool, all is lovely. I can view and add
new "Raw" objects.

http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/

however, in my own view, when i try to use the model:   r =
Raw.objects.all() i get the error

type object 'Raw' has no attribute 'objects'

dumping the Raw object, indeed, it doesn't have 'objects'.

['DoesNotExist', 'MultipleObjectsReturned', '__class__',
'__delattr__', '__dict__', '__doc__', '__eq__', '__getattribute__',
'__hash__', '__init__', '__metaclass__', '__module__', '__ne__',
'__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
'__str__', '__unicode__', '__weakref__', '_collect_sub_objects',
'_default_manager', '_get_FIELD_display',
'_get_next_or_previous_by_FIELD', '_get_next_or_previous_in_order',
'_get_pk_val', '_meta', '_set_pk_val', 'delete', 'pk', 'save',
'save_base']


class Raw(models.Model):


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