xRobot
xRobot

Reputation: 26565

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 ?

 Thanks <:-)"


 print question

Upvotes: 1

Views: 874

Answers (5)

Djangonaut
Djangonaut

Reputation: 5821

no problems at all

Upvotes: 1

ntcong
ntcong

Reputation: 800

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

Upvotes: 0

JAL
JAL

Reputation: 21563

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.

Upvotes: 1

Steven Potter
Steven Potter

Reputation: 609

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?

Upvotes: 1

Ilian Iliev
Ilian Iliev

Reputation: 3236

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

Upvotes: 3

Related Questions