Monday, February 14, 2011

Why You should give a chance to django? Pt 1


Django is a pretty new web development platform. By new i mean not so popular like php.  It's an great and quick alternative for ruby and php, I will try to show You why it's worth the time spent on learning it.

The best thing in django is the loose coupling. You have a layer of templates, business logic and database layer. It's like MVC. But specially for django there was created a new type of application model. MTV - M for model T for templates V for view. It's very good for versioning systems. If you work in a bigger team. You can have a specialist in database programming, a web designer, and business logic creator. You have no need to write queries in django, remember loose copuling :). You define models of tables and then order django to insert shemas into the database system of youre choosing. There are many supported database systems like oracle, postgresql and mysql. You stay in context of django-python programming because you don't have to know any of them. I won't show yet a code example. This will occur in future.

Django doesn't allow to put files in your web server directories. It's very safe because no one can view you code. Also you can have a test server for your project, you don't have to configure apache for the first steps with django, but it is highly recommended.

Another great thing is that django comes with an bunch of apps. You can include apps to Your  project and create youre own. Most useful is the admin panel, login system and comment system apps. Administration panel in django is a very big thing, it's very redundant to write a admin panel for each data type. If you learn the admin panel witch table models it should care off you will gather a wonderful and ready view,search,edit,delete and create content for admin in a snap of yore fingers. You can spend more time with the add/edit forms modification to gather really neet and comfy administration panel. There's really not so much of code needed.

Let say something about very well planned thing: content access system. You can deactivate/activate accounts(for ban by example) make a superuser, a staff member or a public normal user.
superuser is a god in the system like root in linux.
staff member can have more privileges, because they can access the admin panel, superuser limit's operations and tables that user can interact with. Even if it's data specific access like you can edit records of games made only by one game studio or developer.

I found some neet ajax systems made specially for django. like wrapped django with dojo ajax. So the first phase of validation by javascript is pretty well covered.

That's all for today if i learn more i will write it here :) next time i will begin with forms

No comments:

Post a Comment