If you want to post and access data via mobile, the best option is to
create an API. You can use Tastypie to this task (
http://django-tastypie.readthedocs.org/en/latest/index.html).

If you don't want to complicate now, you can create views that return JSON
values to get data. For example:

obj = {
   "pk":new_file.pk,
   "status_file":new_file.status,
}
json = simplejson.dumps(obj, ensure_ascii=False)
return HttpResponse(json, content_type='application/json')

It simpler, but it haven't got a safe way to authenticate your users.

Sorry for English.

Best regards,

2012/7/17 gavin lyons <renegade...@gmail.com>

> I have built the Django server as shown here
>
> http://stackoverflow.com/questions/5871730/need-a-minimal-django-file-upload-example
>
> I have been trying to build an android app that will allow me to select
> files on my phone and post them to the the server.  All the examples i am
> finding are for posting data to a php server which i have tried to adapt
> with little success.
>
> If anyone has an ideas how this can be achieved that would be greatly
> appreciated
>
> --
> 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/-/cRg_vULswLoJ.
> 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.
>

-- 
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