Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django vs PHP+framework

I am in the process of choosing a web framework for an application that will contain:

  • an ajax heavy user interface for administration and configuration
  • subsite accessed by mobile terminals (like cellphones, windows mobile, etc) that will include Google Gears for offline support
  • a reporting site

Since I know basic PHP as well as Python, I am inclined to use Django since Python is a much better language. However, needing to use ajax (jquery, YUI,...) extensively and a need for some kind of reporting engine (like Jasper Reports for java), steers me away from Django since I do not see many results on google... Just seems PHP has so much more documentation and addons that could assist with my requirements, plus the frameworks such as Symfony or CodeIgniter wrap some of the weaknesses of the PHP language.

Any experience with ajax and reporting and Django? Basically, I want to be convinced that going with Django is the way to go, or warned to stay away from it.

Cheers

like image 604
Rok Avatar asked Dec 05 '09 17:12

Rok


People also ask

Is Django better than PHP?

Django is actively developed. More and more developers are leaning towards python. PHP is still used for many websites and you may get benefit from it. If you are learning web development from the beginning then I would suggest Django.

Which is fast PHP or Django?

Django facilitates faster and secure builds and frees the developer from mundane web development tasks, negating the need to create solutions from scratch. With multiple out-of-the-box features, it lets you create complete applications.

Can Django replace PHP?

Well, mostly because Django is not a programming language, it's a framework, so it will naturally have trouble replacing something that is not even in the same category.

Is Django harder than PHP?

As Django is written in Python, Python is a very easy-to-learn and use programming language. But Django is a little bit hard to learn as compared to PHP.


2 Answers

We use PHP + Cake. Absolutely avoid Cake. They have painted themselves into a corner by insisting on PHP 4 compatibility. The ad-hoc growth of PHP has made it a bit of a Franken-language. I yearn to use python on a daily basis instead of PHP. This is just a personal opinion, but I encourage you to go the python route.

The PHP documentation is sufficient, but excessive. The user-contributed notes create the impression of bulk, but they are often inconsistent. The official documentation is sometimes lacking, and it merges the PHP versions together. By comparison, the python documentation is thoughtful, well organized, and separated by version.

like image 98
Ewan Todd Avatar answered Sep 20 '22 14:09

Ewan Todd


Ajax and reporting and Django go quite well together, so if you find yourself more comfortable at Python (no surprise there) and would like a well rounded framework to code in - Django is the way to go. It does not get in your way while being pretty full-featured, we have production Ajax sites with heavy reporting (all custom though) and never regretted going with Django over RoR or especially PHP.

like image 20
kibitzer Avatar answered Sep 18 '22 14:09

kibitzer