开发者

Framework for a site

I have a project and it needs a framework may be,So the project goes this way the users visit to the site and if they like they can create a login which gives them extra features to the site.My question is that will Django suit the requirement or PHP(Please give me explainations as to why) Jquery will be in a common candidate for both.

Also how to scale and measure the site in terms of its usage

Edit:

I have been using Djang开发者_高级运维o and PHP for more than 2-3 years now. I still cannot make up my mind.

In Django coding for example lets say coding has to be done on server side in python and use the template language to render it.

While in PHP serverside/Client side coding can done in PHP itself.

I personally like Django apart from the framework,directory structures, python library -- how different is it from PHP(PHP also has APIS defined in it) .

The only thing i can think about is that PHP would not define directory structures and its left entirely to the user

While Django manages DB.In PHP user has to write queries/manage DBs


Django is a framework. PHP is a language. They are a strange thing to compare :)

Django is an excellent choice as a framework for writing web applications, and can be made to scale very well.

Django will give you authentication and sessions 'for free' as well as templating, eassy caching and many other features Check out the (excellent) docs for more info.

There are PHP frameworks out there for writing web applications, but to be honest I couldn't tell you about any in detail :)

As for measuring, there are many open source options in this area, you might like to look into munin for a monitoring solution. YMMV.


If you want to compare Django (a web framework for the Python programming language) with its analog in the PHP programming language, have a look at CodeIgniter, Kohana, or Symfony. On the Python side, have a look at Pylons and web2py. Which one you choose is generally a matter of preference, as they all do pretty close to the same sort of thing.

Try to keep in mind that coding solely in PHP can be an exercise in disaster if you're not fully acquainted with how to manage a web application. All of these projects use the Model-View-Controller design pattern, as it's become the leading method of delivering web content in modern web frameworks. Study MVC and learn the basics of all of these frameworks. Only then will you really know what will suit your project best.


Yii framework is very perspective. Now there is alot of features. MVC also implemented well. Very easy to learn and very easy to use.


you cant really compare a language and a framework but if you have the choice drop PHP.

Django/Python has a lot of battery included , it means it is a framework and CMF. Python is clean makes sense and you can write code really fast, without all the php non sense. You'll spend time writing just the things you need and not fix the language shortcomings.

There are good frameworks in php , Symfony for instance , but the tools are just not there. With python and django you get loads of tools for development ,fabric , south , pip , that makes development a breeze.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜