Iphone applications via django

515 views
Skip to first unread message

Sait Maraşlıoğlu

unread,
Sep 11, 2012, 4:59:12 AM9/11/12
to django...@googlegroups.com
How do you create iphone applications via django.
Application logic will be django but what about user interface, do we do that with django too?

Mario Gudelj

unread,
Sep 11, 2012, 6:09:10 AM9/11/12
to django...@googlegroups.com

Nope. You do objective c or html and js with something like phonegap

On Sep 11, 2012 6:59 PM, "Sait Maraşlıoğlu" <sait...@gmail.com> wrote:
How do you create iphone applications via django.
Application logic will be django but what about user interface, do we do that with django too?

--
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/-/xL4mqQobAEUJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Cal Leeming [Simplicity Media Ltd]

unread,
Sep 11, 2012, 6:39:07 AM9/11/12
to django...@googlegroups.com
You can create a server side API for the app - but the actual interface is done using the methods mentioned by Mario previously.

Cal

Kelly Nicholes

unread,
Sep 11, 2012, 10:16:34 AM9/11/12
to django...@googlegroups.com
If you go HTML/JS, a phonegap alternative for cross-device compatibility would be appcelerator.

Thomas Weholt

unread,
Sep 11, 2012, 10:22:03 AM9/11/12
to django...@googlegroups.com
You could use JQuery Mobile on the frontend. It's still a web app like
any other, but app-like in looks and functionality, at least to a
certain degree.

Thomas
> --
> 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/-/M5URL8CILUUJ.
>
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.



--
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org

Cal Leeming [Simplicity Media Ltd]

unread,
Sep 11, 2012, 3:18:10 PM9/11/12
to django...@googlegroups.com
It would be a cold day in hell before I ever used XML for an API ;)

There's a whole ton of API wrappers for Django (hell you could write your own in under 50 lines of code), but here is a pretty good one:


Tastypie is a bit complex to look at, but it is sane and ensures you keep to good security and design principles.

Hope this helps!

Cal

On Tue, Sep 11, 2012 at 7:56 PM, Ray Ch <ray1...@gmail.com> wrote:
Can you tell me how do i do that? 
Do you have any kind of blog or tutorial which would help me out connecting the web API's with iphone.

Do you suggest JSON or XML ?
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/J44uT5ivqbIJ.

Sait Maraşlıoğlu

unread,
Sep 11, 2012, 3:41:58 PM9/11/12
to django...@googlegroups.com
What do you mean by api wrapper, ur previous link a bit complicated and Im having a hard time understanding this term, can u explain in a smiple manner?

Kurtis Mullins

unread,
Sep 11, 2012, 3:56:58 PM9/11/12
to django...@googlegroups.com
I can offer some information if you can share your "skill level" when it comes to developing iOS and/or Django Applications.

1. Do you currently know how to program iOS Applications? If so, do you have any experience writing iOS programs that can handle HTTP Requests? If the answer to either of those is "no", then you may want to dive in to some iOS coding first. Alternatively, skip to #2:

2. Do you know how to program Django Applications? If so, do you have a pretty good understanding of the Server-Client Paradigm?

There's many different approaches you can take to this problem. One approach would be to create an iOS Application which uses a Django Application as a "back-end". Another approach would be to simply write a Django Application and use HTML to make the web site look like a native iOS Application. There's pros and cons to each of these methods. One or the other may be easier dependent upon what you're trying to accomplish in this particular Mobile Application as well as your skill level and how much time/motivation you have to learn new technologies.

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/F73khMkPWO4J.

Sait Maraşlıoğlu

unread,
Sep 11, 2012, 4:23:19 PM9/11/12
to django...@googlegroups.com
For my skill levels, Ive started with python, then qt, pyqt,matplotlib ... and finnaly django, I m not complaining, django is just perfect. I m ok with django, I write and and I understand what I read. If I want to learn ios, answer is no, cause Ive been travelling alot lately among different enviroments and found django and now have to stop and learn it. Your approach about building a website and make it behave like an ios applcation seemed better for me. Recently I found twitters bootstrap, and responsive design, I think I can create a web site, for mobile phone. But I dont know its disadvantages
When I first read api wrapper and hell about using xml :) I just intrested, cause it seems like its something u use to communicate with some other layer of programming.
Recently I wrote a code look like this. its initial code and still has alot to do, have to do it modular and parametric.
"""
    doc = Document()
    rows = doc.createElement("rows")
    doc.appendChild(rows)
    head = doc.createElement("head")
    rows.appendChild(head)
    mycolumn = doc.createElement("column")
    mycolumn.setAttribute("type", "ed")
    mycolumn.setAttribute("sort", "str")
    mycolumn.setAttribute("color", "red")
    mycolumn.setAttribute("width", "150")
    head.appendChild(mycolumn)
    ctext = doc.createTextNode("This is a test!")
    mycolumn.appendChild(ctext)
    for e in Material.objects.all()[15:55]:
        myrow = doc.createElement("row")
        myrow.setAttribute("id", e.material)
        rows.appendChild(myrow)
        mycell = doc.createElement("cell")
        myrow.appendChild(mycell)
        ptext = doc.createTextNode(e.stext)
        mycell.appendChild(ptext)
        #print doc.toprettyxml(indent="  ")
    data = doc.toprettyxml(indent=" ")
"""
this is basically generates some xml and returns via httprequest using django, and it works. I use this xml to communicate with dhmtlx grids. I was thinking to write some code and make it parametric, with a lot of if loops.
If I can do that, is it going to be an api wrapper :)
its just what I understood, it may be complately another thing.

Nikolas Stevenson-Molnar

unread,
Sep 11, 2012, 5:02:47 PM9/11/12
to django...@googlegroups.com
For web applications, I'd recommend using JSON instead of XML: http://en.wikipedia.org/wiki/Json

It's easier to work with and Python has a json module which will convert a Python dictionary to a JSON-formatted string ready to return to the client. Most JS libraries also have functions to turn JSON-formatted strings into JS objects and the other way around.

_Nik
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/EkQMqMK1DisJ.

Mario Gudelj

unread,
Sep 11, 2012, 7:36:57 PM9/11/12
to django...@googlegroups.com
Sait,

Just dive into Tasty Pie. It will easily interface your models with a JSON feed. On the client side you then use this JSON feed in your JavaScript to construct your web pages or do whatever you want with it. I think this would be the best model for you. Django with Tasty Pie for the server side and JavaScript and HTML for the client side.

_M

Stephen Anto

unread,
Sep 12, 2012, 6:15:55 AM9/12/12
to django...@googlegroups.com
Hi,

Django piston is available to convert all django data into json via handler.

You can use this json data to both web and mobile interface.

Currently I am working on the same.... cheers... Thanks for visiting

On Tue, Sep 11, 2012 at 2:29 PM, Sait Maraşlıoğlu <sait...@gmail.com> wrote:
How do you create iphone applications via django.
Application logic will be django but what about user interface, do we do that with django too?

--
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/-/xL4mqQobAEUJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Thanks & Regards
Stephen S



Blog:      blog.f2finterview.com

Jani Tiainen

unread,
Sep 12, 2012, 6:24:35 AM9/12/12
to django...@googlegroups.com
I'm using Sencha Touch to build mobile interface to Django application.
(basically Django serves just REST API, UI is pure JS/HTML5 stuff).

Nice thing is that there exists build process to use phonegap with
sencha touch to create real native app if needed.

12.9.2012 13:15, Stephen Anto kirjoitti:
> Hi,
>
> Django piston is available to convert all django data into json via handler.
>
> You can use this json data to both web and mobile interface.
>
> Currently I am working on the same.... cheers... Thanks for visiting
> <http://www.f2finterview.com/>
>
> On Tue, Sep 11, 2012 at 2:29 PM, Sait Maraşlıoğlu <sait...@gmail.com
> <mailto:sait...@gmail.com>> wrote:
>
> How do you create iphone applications via django.
> Application logic will be django but what about user interface, do
> we do that with django too?
>
> --
> 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/-/xL4mqQobAEUJ.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com
> <mailto:django-users%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>
>
> --
> Thanks & Regards
> Stephen S
>
>
>
> Website: www.f2finterview.com <http://www.f2finterview.com>
> Blog: blog.f2finterview.com <http://blog.f2finterview.com>
> Tutorial: tutorial.f2finterview.com <http://tutorial.f2finterview.com>
> Group: www.charvigroups.com <http://www.charvigroups.com>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.


--
Jani Tiainen

- Well planned is half done and a half done has been sufficient before...

Sait Maraşlıoğlu

unread,
Sep 12, 2012, 8:49:51 AM9/12/12
to django...@googlegroups.com
Sencha looks great, and saw some alternatives too, I will check them all.
One question about it. Do you develope applications for iphone, android seperately or u create something then compile it for different enviroments?

havent got round for piston but have some outputs with tastypie already, seems like it will be possible for me to get my output with some tweaks.
thx.

Jani Tiainen

unread,
Sep 13, 2012, 1:19:17 AM9/13/12
to django...@googlegroups.com
I'm developing generic mobile app, mostly to be used with iPad/Android
tablets. Currently we don't build native apps due our development being
in such a early phase.

12.9.2012 15:49, Sait Maraşlıoğlu kirjoitti:
> Sencha looks great, and saw some alternatives too, I will check them all.
> One question about it. Do you develope applications for iphone, android
> seperately or u create something then compile it for different enviroments?
>
> havent got round for piston but have some outputs with tastypie already,
> seems like it will be possible for me to get my output with some tweaks.
> thx.
>
>
> On Wednesday, 12 September 2012 13:25:07 UTC+3, Jani Tiainen wrote:
>
> I'm using Sencha Touch to build mobile interface to Django application.
> (basically Django serves just REST API, UI is pure JS/HTML5 stuff).
>
> Nice thing is that there exists build process to use phonegap with
> sencha touch to create real native app if needed.
>
> 12.9.2012 13:15, Stephen Anto kirjoitti:
> > Hi,
> >
> > Django piston is available to convert all django data into json
> via handler.
> >
> > You can use this json data to both web and mobile interface.
> >
> > Currently I am working on the same.... cheers... Thanks for visiting
> > <http://www.f2finterview.com/>
> >
> > On Tue, Sep 11, 2012 at 2:29 PM, Sait Maraşlıoğlu
> <sait...@gmail.com <javascript:>
> > <mailto:sait...@gmail.com <javascript:>>> wrote:
> >
> > How do you create iphone applications via django.
> > Application logic will be django but what about user
> interface, do
> > we do that with django too?
> >
> > --
> > 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/-/xL4mqQobAEUJ
> <https://groups.google.com/d/msg/django-users/-/xL4mqQobAEUJ>.
> > To post to this group, send email to
> django...@googlegroups.com <javascript:>
> > <mailto:django...@googlegroups.com <javascript:>>.
> > To unsubscribe from this group, send email to
> > django-users...@googlegroups.com <javascript:>
> > <mailto:django-users%2Bunsu...@googlegroups.com
> <javascript:>>.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en
> <http://groups.google.com/group/django-users?hl=en>.
> >
> >
> >
> >
> > --
> > Thanks & Regards
> > Stephen S
> >
> >
> >
> > Website: www.f2finterview.com <http://www.f2finterview.com>
> <http://www.f2finterview.com>
> > Blog: blog.f2finterview.com <http://blog.f2finterview.com>
> <http://blog.f2finterview.com>
> > Tutorial: tutorial.f2finterview.com
> <http://tutorial.f2finterview.com> <http://tutorial.f2finterview.com
> <http://tutorial.f2finterview.com>>
> > Group: www.charvigroups.com <http://www.charvigroups.com>
> <http://www.charvigroups.com>
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> > To post to this group, send email to django...@googlegroups.com
> <javascript:>.
> > To unsubscribe from this group, send email to
> > django-users...@googlegroups.com <javascript:>.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en
> <http://groups.google.com/group/django-users?hl=en>.
>
>
> --
> Jani Tiainen
>
> - Well planned is half done and a half done has been sufficient
> before...
>
> --
> 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/-/6J4paF2FOrgJ.
Reply all
Reply to author
Forward
0 new messages