On Friday, 12 August 2011 02:13:13 UTC+1, Kevin Anthony wrote:
>
> i'm trying to interface a django json page with an android application.
> it seems most json applications written for android use
> www.somepage.com/json.php?this=that&something=anotherthing
>
> But that doesn't work with django,
>
> Has anyone interfaced Django and Android? and if they did, is there
> any reading material on it?
>
> -- 
> Thanks
> Kevin Anthony
> <http://www.NoSideRacing.com>
>

Your post is a little confusing.

Firstly, URLs of that form (without the .php, of course) work perfectly well 
in Django. GET parameters are available within the view from 
`request.GET['this']` etc.

Secondly, however, there is no correlation between the way you request a 
page and the type of content. In other words, it is just as possible to 
serve a page as JSON with the url 
somepage.com/json/this/that/something/anotherthing as it is with 
somepage.com/json?this=that&something=anotherthing. All that matters is how 
the server renders the result, and (preferably) declares the content-type 
when serving it.

Thirdly, none of this has anything to do with Android, since all you are 
doing from Android is requesting a URL and processing the result.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/NP73XrXCQtcJ.
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