Node.js application using the Django admin interface

I would like to create a new application using node.js, but this requires a fairly small backend control, which I will not need to create. I have some existing code in django and really like the built-in admin interface for managing backend management.

Is it possible to use something like nginx to direct all traffic to my node.js application, unless the URL path starts with / admin, in which case it will direct traffic to django?

Alternatively, is there something like an admin interface for any of the node.js frameworks for specific databases?

Thank.

+1
django nginx
May 25 '11 at 8:54
source share
2 answers

Yes you can do it.

It might be easier to just put your django admin application in a subdomain, django.example.com .

I am using the Django admin interface with an outdated PHP application. I found out that in a few hours I can create a more pleasant administrator than the special built-in administrator. The interface is still obviously using PHP and old code, but I just changed the whole admin backend that is now running on django with respect to the database.

Very well.

+1
May 25 '11 at 13:00
source share

If you are already using Node.js, you can look at node-http-proxy , which can redirect requests to different places based on the route. It is very easy to configure and works very quickly from my experience.

0
Jul 10 '12 at 9:16
source share



All Articles