On 01/07/2012 11:04 AM, Barış Bilgiç wrote:
Hi,

I am looking for how to implement URL rewrite in Django which is
explained inhttp://en.wikipedia.org/wiki/Rewrite_engine .

For example,I would like to convert

|http://127.0.0.1:8000/employer/details/20/| 
to|http://127.0.0.1:8000/employername-20.htm|

How can I implement this in Django? could suggest me a document or give
an example ?

you write your url to view mapping in urls.py, note that in django, you don't need to do a crude hack like "rewriting url" instead you specify that an url is to be specified by certain views.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to