django admin integration of mongoengine

2,082 views
Skip to first unread message

Jan Schrewe

unread,
Sep 20, 2011, 1:01:22 PM9/20/11
to mongoeng...@googlegroups.com
Hi,

I have started a project to integrate mongoengine documents into the django admin app. At the moment it is a more or less ugly giant hack but works and allows you to use django models together with mongoengine documents in the admin app.


Cheers,

Jan

Collin Anderson

unread,
Sep 20, 2011, 4:31:43 PM9/20/11
to mongoeng...@googlegroups.com
That looks neat. Thanks so much.

Evan LeCompte

unread,
Oct 18, 2011, 4:21:55 AM10/18/11
to mongoeng...@googlegroups.com
I like this, but when I tried it, with a fresh new project using mongoengine plus your app
ran into some problems:

  • it wouldn't let me into admin until I specified something for the DATABASES setting (throws errors)
    I set it at sqlite3 and ran syncdb...this operation however did not seem to add the normal django schemas
    like user, contenttype etc to mongo, but rather to sqlite instead..

  • I couldn't get past admin login even after creating several superusers using ./manage.py createsuperuser
    kept failing username/password
I'm completely new to mongoengine so maybe there's something I'm missing...thanks

Jan Schrewe

unread,
Oct 18, 2011, 8:40:50 AM10/18/11
to mongoeng...@googlegroups.com
Sorry if this is OT. I'll be quick.

Mongoadmin does not replace any part of django except for the admin. So if your old legacy app used MySQL it will still use MySQL after you installed mongoadmin. The same goes for all the django contrib apps. They still need a relational database. The whole idea why I've written mongoadmin was to be able to use relational third party apps together with mongo db backed ones. If you want to use mongo db for everything have a look at django-nonrel (http://www.allbuttonspressed.com/projects/django-nonrel). 

Hope that helps.

Jan
 

Evan LeCompte

unread,
Oct 18, 2011, 9:45:29 AM10/18/11
to mongoeng...@googlegroups.com
I understand it doesn't replace anything except for the admin.
It was only the admin that I was trying to get to work, following the documentation in your app
(adding the override setting in settings.py,etc).
how do you suggest to create admin users on a fresh project? I assume that part still goes to relational...not
sure why I couldn't get past login if it was authenticating based on sqlite3 as setup.

Jan Schrewe

unread,
Oct 18, 2011, 10:46:13 AM10/18/11
to mongoeng...@googlegroups.com
I'm not sure what's going on. I've never had problems with the creation of a new project. But I have AFAIK always run syncdb before adding mongoadmin. 

Could you file an issue here https://github.com/jschrewe/django-mongoadmin/issues and post  what you have done so I can try to reproduce it?

Cheers,

JAn

Jonatan Heyman

unread,
Oct 30, 2011, 6:23:36 AM10/30/11
to MongoEngine Users
Cool! Looks very interesting. I will check it out when I have time :).

/jonatan
Reply all
Reply to author
Forward
0 new messages