开发者

Django and PHP together

def hi_guys():
 question=" I have a django application and a php script. I want that php script
 interacts with the tables used by django ( with INSERT and DELETE ). Are there 
 problems with django ?

 开发者_StackOverflow社区Thanks <:-)"


 print question


If you keep the data correct(responding to the django model rules) everything will be ok.

P.S. Have in mind that if you don`t use transactions it is possible that django and php queries to mix in order, if this is significant to your system


If I understand correctly you just want two different applications, one of them PHP and the other Python/Django to interact with the same database? That is a relatively common occurrence. It is really more of a question of the database you are planning to use than the applications that will be accessing it.

What database are you planning to use?


I don't see any issues with that. We have an application where I'm doing that; people interact with the PHP front end and fetch data from an API, and then the widget that displays it is written in Django. As long as each is making valid queries and writes to the DB, it doesn't really matter if you're accessing it through PHP or Python.


no problems at all


If you are using MySql, SQLite or PostgreSQL, and then the problem is solved ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜