I work in a company 100% unix like, we don't have MS o.s., and our
framework works with psycopg on debian13+venv.
I'm working to a personal cms written from scratch alwasy on debian13
with php8.4, postgresql18 and nginx, now I'm using psycopg so I have a different user for the php and another one for the venv etc.
I heard psycopg for security reasons and also for the performance is
better than pdo, tell me what do you think about it! :)
Sure you could have been able to write everything in one or the
other language (python can do both frontend and backend, as you can
do with php too even less common), but I doubt you have the power to
decide this.
I think this is more about layering the application, the frontend I
guess is written in PHP while the backend is written in Python.
I would keep that separation and only allow the backend to access the database,
also keep it on a such level that the backend don't trust the data from
the frontend, that all data is validated before use, sure the frontend shouldn't trust the users and validate their input.
Sure you could have been able to write everything in one or the other language (python can do both frontend and backend, as you can do with
php too even less common), but I doubt you have the power to decide this.
--
//Aho
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,101 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 492419:02:17 |
| Calls: | 14,115 |
| Files: | 186,270 |
| D/L today: |
4,395 files (1,373M bytes) |
| Messages: | 2,497,687 |