How do I do this in my Django URLs? (.json, .xml)
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-04-11T23:28:32Z
Indexed on
2010/04/11
23:33 UTC
Read the original article
Hit count: 162
Suppose this is my URL route:
(r'^test/?$','hello.life.views.test'),
How do I make it so that people can do .json, .xml, and it would pass a variable to my views.test, so that I know to make json or xml?
© Stack Overflow or respective owner