jschrewe / django-mongoadmin

Integrates mongodb into django's admin
http://www.schafproductions.com/projects/mongo-admin/
BSD 3-Clause "New" or "Revised" License
112 stars 38 forks source link

Adding an item to document is not working also delete has some issues #6

Closed awais786 closed 11 years ago

awais786 commented 12 years ago

I am trying to integrate it with my mongodb using mongoengine. It is showing me index page but when i try to load a add page it shows me errors that

settings.DATABASES is improperly configured. Please supply the ENGINE value. and when i try to delete any record i got this error get_all_related_objects() got an unexpected keyword argument 'include_proxy_eq'

jschrewe commented 12 years ago

Do you have a sql database configured? Because I doubt mongoadmin will work without one but I have never tried it. But I would guess the need for a relational db is too deep embedded in django to do without one.

As to the delete error: WHich version of django and mongoengine are you using?

awais786 commented 12 years ago

i m using only mongodb. no sql db configured. My django is 1.4 and mongoengine is 0.6.8

jschrewe commented 12 years ago

I doubt Django will work without a sql db. But I never tried it. But that is where your Please supply ENGINE value comes from. Can't help you there. Sorry.

Could you try the newest mongodbforms from github? That should take care of the get_all_related_objects problem. Before Django 1.4 the stub mongodbforms provided took fixed args and Django 1.4 provided some more args. This is now done with *args and **kwargs.