Please advise about pros/cons of cross-platform as Phonegap and Titanium in combination with Django.

63 views
Skip to first unread message

백병화

unread,
Apr 13, 2015, 1:54:10 PM4/13/15
to django...@googlegroups.com
Hi All
I'm using django+python+mariadb+mysql+redis+html5+css3+javascript+jquery+nginx 4 web development
and I'm wondering cross-platform as Phonegap or titanium for mobile apps.
Colud you plz advise about pros/cons of them(In combination with Django+Python)?
Thank you for reading ma article.

Filipe Ximenes

unread,
Apr 13, 2015, 2:23:06 PM4/13/15
to django...@googlegroups.com
I'm assuming your current application is not a SPA (single page application).
Django is a good option for serving data for a mobile app, you just need to develop an API. Django default behaviour is to serve full html pages, but when you are working with mobile apps you are only interested in the actual data from your django application, therefore a JSON (or other format you'd like to use) it's a better choice. There are a some libs that will help you developing an API, the most used ones are: Tastypie and Django REST framework (DRF). I really like working with DRF, it's a very powerful tool, very popular and with an active community. 


Also, in my company, when we are doing applications that will interact with mobile devices, we do all the backend logic in an API and for the frontend, we do a SPA using Angular.js. This way we keep all the logic in a single place, accelerating the backend development and reducing the amount of code needed to maintain.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cdb48ad5-8a01-4362-84a2-5233407c9405%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
  
Filipe Ximenes
+55 (81) 8245-9204
Vinta Software Studio
http://www.vinta.com.br

Filipe Ximenes

unread,
Apr 13, 2015, 2:37:04 PM4/13/15
to django...@googlegroups.com
About cross-platform mobile development: my advice is to only use then if it's a simple app. If you are planning to do something more complex, like some innovative interface or expecting a very fluid interaction, it's often not a good choice.
Many times you will struggle to replicate mobile behaviour using this technology. Also, it's common to need to interact with native modules, and sometimes you will even need to develop your own native modules. Trust me: it's not funny to juggle between javascript, objective-c, and java. 
Otherwise, i've worked with Phonegap, it's a good framework, has a lot of open source packages developed by the community. 
Also, consider Ionic: http://ionicframework.com/
Reply all
Reply to author
Forward
0 new messages