使用Django管理界面的Node.js应用程序 [英] Node.js application using Django Admin Interface

查看:114
本文介绍了使用Django管理界面的Node.js应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用node.js构建一个新的应用程序,但是它需要大量的后端管理,而我不想构建.我在django中有一些现有代码,非常喜欢用于处理后端管理的内置管理界面.

I would like to build a new application using node.js but it requires quite a bit of backend management that I would rather not have to build. I have some existing code in django and really like the built in Admin interface for handling the backend management.

除了URL路径以/admin开头时,我是否可以使用nginx之类的东西将所有流量定向到我的node.js应用程序?

Is it possible for me to use something like nginx to direct all traffic to my node.js application except when the url path starts with /admin in which case it would direct the traffic to django?

或者某些数据库的任何node.js框架都有类似管理界面的东西吗?

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

谢谢.

推荐答案

是的,您可以这样做.

将django管理应用程序放在子域django.example.com上可能会更容易.

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

我正在将Django管理界面与旧版PHP应用程序配合使用.我发现,与专门构建的管理员相比,我可以在短短几个小时内建立一个更好的管理员.显然,前端仍然使用PHP和旧代码,但是我只是换了整个admin后端,现在该后端在django上针对数据库运行.

I'm using Django admin interface with a legacy PHP application. I found out I could build a nicer admin in just a few hours, than the special built one. The frontend is still obviously using PHP and the old code, but I just swapped out the entire admin backend which is now run on django against the database.

真的很好.

这篇关于使用Django管理界面的Node.js应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆