Django style admin for Express

365 views
Skip to first unread message

Brent Lingle

unread,
Jun 10, 2012, 11:09:49 AM6/10/12
to Express
Is there a Django style admin for express? Or, has anyone gotten the
Django admin to work with Express? I'm not looking to reinvent the
wheel on this one, so if I could find a great user admin, or if its
possible to use the current Django admin with something like *nginx,
that would be great. Looking forward to your replies!

jTNT

unread,
Jun 10, 2012, 9:11:03 PM6/10/12
to expre...@googlegroups.com
G'day Brent,
this is an obvious question:
I too have come to node from django, and the first thing I wanted was a handy admin:
I'm mostly doing simple website projects where half the effort can be in the client facing admin pages.

A quick look at the express documentation will reveal that it's ORM agnostic.
The view rendering example code snippets use literal objects: where they gonna come from?
Our admin interface is gonna have to either pick a store to administer, or define an ORM.
Either way, that isn't gonna just sit on top of express, because this decision will also tie into how we collect objects to feed to the view renderer.

this realisation goes to Django's structure as an end to end solution:
logically, the admin interface seems like a layer, but practically, it is entwined with other opinionated features and components of the (wonderful) monolith, that simply aren't defined by express. 
So, short answer: no, django admin isn't going to slot on nicely to express for ya.

I've put some time into making a very simple admin for express on mongoose. It's good enough for my simple requirements, but I've made some decisions that will make it unlikely to just fit nicely with whatever else you're doing.
(eg: I'm not using views - I like anti-templating)  
but if you're gonna put some effort into this, you might pick up some clues in the admin section of www.justsayno.de

Anybody got any other directions on this?

-= jTNT

tjholowaychuk

unread,
Jun 11, 2012, 12:37:45 PM6/11/12
to Express
yeah you wont find a nice way that will work for everyone since you
can use any combination of database tools, though personally I think
if your app is the type where you just need quick scaffolding Express
may not be the framework for you, most people do very customized apps
with it, so maybe something more like Drupal/Rails/Django/etc
Reply all
Reply to author
Forward
0 new messages