TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Technical Question: Django for web/mobile app

2 点作者 xackpot超过 12 年前
Hi Guys, I have a question related to the framework I am using to develop an app (webapp, mobile). I have a webapp with front end written in GWT and backend written in php and I use the same backend for my ios/android app as well. The backend has php scripts that either return json objects or simple responses. Now I was thinking of moving the whole framework to django because I wanted to make use of multi-threading provided by python and also to learn a new framework. So my question is, can I use django in such a setting? Basically, can I use the same server side code for both my webapp and mobile app? Has anyone from HN done it before? Can you please share your thoughts on how to go about it? Thanks a lot, appreciate your responses.

2 条评论

byoung2超过 12 年前
<i>The backend has php scripts that either return json objects or simple responses</i><p>I am a PHP developer and I ran into this question recently. At the startup where I work, we have a web app that is completely Ajax driven. When we decided to convert those Ajax endpoints to an API to be used with a mobile app and possibly open it to the public, I did some research and eventually decided on node.js and Restify. One of the draws is that with an Ajax webapp, we already have a team of JS devs on staff, so there would be less of a learning curve. I'd suggest looking into it.<p>EDIT: I forgot to address the multithreading part. I believe that node.js is not true multithreading...it is event driven, so it can use a single thread more efficiently, which should achieve the same effect.
评论 #4779588 未加载
ddorian43超过 12 年前
I wanted to make use of multi-threading provided by python?<p>As far as i know that line is automatically false. Yes you can use django for returning html and json(django-tastypie for example).<p>Also please put more info in the title.
评论 #4779388 未加载