Django

Dynamic URLs in Django

I long ago switched my company's web applications from Code Igniter to Django. The main reasons were Django's more powerful database API and Python's maintainability and scalability over PHP. The only feature of Code Igniter that I really miss in Django is the ability to add a page without first registering the url, formulating a regular expression to describe the parameters and variations of the view function, and then creating the view and template.

For a production website, this is a better method than Code Igniter's strategy of http://domain.com/class/method/arg/arg/.../, but CI's is much easier during development. My urls may change half a dozen (or more) times in the course of the project, especially if marketing or advertising is involved. Fortunately, there is an easy fix. Read More...
|