Does Django create a truly flexible three-layer architecture?

A few weeks ago I asked the question: "Is PHP, Python, PostgreSQL design suitable for a non-web business application?" Is the design of PHP, Python, PostgreSQL suitable for a business application?

Most answers recommend skipping the PHP snippet and using Django to build the application. Since I learned Django, I started asking a question about one specific aspect of my goals and how Django starts playing a non-web business application .

Based on my understanding, Django will manage both the part of the view and the controller, and PostgreSQL or MySQL will process the data. But my goal was to clearly separate the layers so that the database, domain logic, and presentation could be changed without significantly affecting others. It seems like I'm only separating M from VC layers using a Django solution.

So, it is counterproductive for me to build a domain level in Python using the ORM ORICIR tool ORICIR ORIGINER , PostgreSQL for and then still use Django or PHP for the presentation level. Is this possible or pure madness?

Basically, I would look at the Django / PHP> Python / SQLAlchemy> PostgreSQL / MySQL architecture .

Edit: Before the fans get mad at me for asking about Django, just understand: this is a question, not an accusation. If I knew the answer or had my own opinion, I would not ask!

+3
source share
6 answers

, , , Django . . Django , Django . , Django ORM , Django .

Django ORM, ( , ) . , ORM Django , , .

Django : , , Django, .

Django, Django ORM, , , SQLalchemy. , SQLalchemy , - ORM.

, . , , , , .

+9

Django , , , - ORM, , , .., , . , ORM , , .

, , -, , , . , , , Rails "", ( : , , , ).

( , , "" "" MVC -, MVC , , - HTTP- - . "" - MVC, , )

+7

, " " " /". , (, Django). , / , , , .

+4

3- , , Django ORM SQLAlchemy, Django, .

+3

, Django , , PostgreSQL MySQL .

, Django ORM, /.

FAQ MVC:

""? Djangos, , : , , URL- Django.

, , Django - MTV, "", "" "". .

, , , . , , , Django , .

+3

. Django , - . () . , .

mix-n-match ( ) .

- - Django PHP. . , . ORM. .

-1

All Articles