Re: anybody using PhoneGap with Django

2013-02-20 Thread Ben Roberts
Current stack:

*Backend*:
Django
Django-rest-framework with JSON-P and/or CORS enabled to allow X-domain 
requests from Phonegap apps. 
Django admin for data editing and entry.
Other stuff specific to our app and/or server setup. 


*Front end:*
Backbone.js for structure.  The json from my rest-framework API's 
essentially become the backbone models.  
Underscore.js templates 
Jquery for direct dom manipulations and querying within backbone views. 
Require.js for modules & minimification
PhoneGap to wrap it all up and get it in.

We currently run the same code base as mobile web site (with a few hooks to 
determine whether its operating under a phonegap wrapper or just on the 
web.). So, this can be done, if you're careful and plan for it.

We're pretty happy with this model and its been in production for about a 
year now, with a few different apps.  High level, I can't really think of 
another way to do a PhoneGap app besides Django-as-a-backend-and-API + a 
 Javascript MVC (pick your framework, we went with Backbone) on the front 
end.

Feel free to ping me privately if you have other questions 

Ben Roberts




On Wednesday, February 20, 2013 10:10:45 AM UTC-7, Larry Savage wrote:
>
> Great idea!  Any update on this one?
>
> On Friday, July 8, 2011 1:41:02 PM UTC-4, br wrote:
>>
>> I am currently in the middle of a project where we are planning on 
>> using Django with PhoneGap . . . Haven't completed yet, or gotten to 
>> the PhoneGap part of it, so can't report its success or not yet. 
>>
>> Basically, we are using jQuery Mobile to develop a complete mobile 
>> application that operates on a pair of cached JSON objects, one to 
>> define the page flow of the application and the page contents, and the 
>> other to store form results to be returned to the server or stored in 
>> localstorage.  I am not using Django templates for anything, but 
>> rather just going to use TastyPie to provide a REST interface for the 
>> app's models in order to provide and receive the JSON objects to and 
>> from the front end. So essentially- just using Django for the back 
>> end. We also looked at Sencha touch vs. jQMobile for the front end but 
>> went with jQ Mobile because my front end developer was much more 
>> comfortable with it and was already familiar with jQuery.  Once we get 
>> the thing working as an addressable mobile web app, we intend to 
>> package and wrap it as a PhoneGap app.   I can post an update on our 
>> success or failures in a month or so when the project has come 
>> together more.  As of now, just he front end is completed to operate 
>> on the JSON objects and I am working on the models and REST interface 
>> for it. 
>>
>> Ben 
>>
>> On Jul 8, 8:01 am, Brian Bouterse  wrote: 
>> > I would be interested to hear this as well... 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > On Fri, Jul 8, 2011 at 12:44 AM, John Fabiani  
>> wrote: 
>> > > On Thursday, July 07, 2011 08:48:51 pm Andy McKay wrote: 
>> > > > On 2011-07-07, at 2:22 PM, John Fabiani wrote: 
>> > > > > I'm wondering if anyone has had any success with PhoneGap and 
>> Django? 
>> > 
>> > > > Yes. 
>> > > > -- 
>> > > >   Andy McKay 
>> > > >   a...@clearwind.ca 
>> > > >   twitter: @andymckay 
>> > 
>> > > LOL - I guess I could have asked a better question.  Can I assume you 
>> have 
>> > > had 
>> > > success with Django and PhoneGap?  If so would you take the time to 
>> explain 
>> > > in 
>> > > a general your experience with PhoneGap.  I have been told that the 
>> > > combination is very slow - although I don't see any reason that it 
>> would 
>> > > be. 
>> > > I was also told that debugging was very difficult. 
>> > 
>> > > Johnf 
>> > 
>> > > -- 
>> > > 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. 
>> > 
>> > -- 
>> > Brian Bouterse 
>> > ITng Services
>
>

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




Re: anybody using PhoneGap with Django

2013-02-20 Thread Larry Savage
Great idea!  Any update on this one?

On Friday, July 8, 2011 1:41:02 PM UTC-4, br wrote:
>
> I am currently in the middle of a project where we are planning on 
> using Django with PhoneGap . . . Haven't completed yet, or gotten to 
> the PhoneGap part of it, so can't report its success or not yet. 
>
> Basically, we are using jQuery Mobile to develop a complete mobile 
> application that operates on a pair of cached JSON objects, one to 
> define the page flow of the application and the page contents, and the 
> other to store form results to be returned to the server or stored in 
> localstorage.  I am not using Django templates for anything, but 
> rather just going to use TastyPie to provide a REST interface for the 
> app's models in order to provide and receive the JSON objects to and 
> from the front end. So essentially- just using Django for the back 
> end. We also looked at Sencha touch vs. jQMobile for the front end but 
> went with jQ Mobile because my front end developer was much more 
> comfortable with it and was already familiar with jQuery.  Once we get 
> the thing working as an addressable mobile web app, we intend to 
> package and wrap it as a PhoneGap app.   I can post an update on our 
> success or failures in a month or so when the project has come 
> together more.  As of now, just he front end is completed to operate 
> on the JSON objects and I am working on the models and REST interface 
> for it. 
>
> Ben 
>
> On Jul 8, 8:01 am, Brian Bouterse  wrote: 
> > I would be interested to hear this as well... 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Fri, Jul 8, 2011 at 12:44 AM, John Fabiani  
> wrote: 
> > > On Thursday, July 07, 2011 08:48:51 pm Andy McKay wrote: 
> > > > On 2011-07-07, at 2:22 PM, John Fabiani wrote: 
> > > > > I'm wondering if anyone has had any success with PhoneGap and 
> Django? 
> > 
> > > > Yes. 
> > > > -- 
> > > >   Andy McKay 
> > > >   a...@clearwind.ca 
> > > >   twitter: @andymckay 
> > 
> > > LOL - I guess I could have asked a better question.  Can I assume you 
> have 
> > > had 
> > > success with Django and PhoneGap?  If so would you take the time to 
> explain 
> > > in 
> > > a general your experience with PhoneGap.  I have been told that the 
> > > combination is very slow - although I don't see any reason that it 
> would 
> > > be. 
> > > I was also told that debugging was very difficult. 
> > 
> > > Johnf 
> > 
> > > -- 
> > > 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. 
> > 
> > -- 
> > Brian Bouterse 
> > ITng Services

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




Re: anybody using PhoneGap with Django

2011-07-08 Thread John Fabiani
On Friday, July 08, 2011 10:41:02 am br wrote:
> I am currently in the middle of a project where we are planning on
> using Django with PhoneGap . . . Haven't completed yet, or gotten to
> the PhoneGap part of it, so can't report its success or not yet.
> 
> Basically, we are using jQuery Mobile to develop a complete mobile
> application that operates on a pair of cached JSON objects, one to
> define the page flow of the application and the page contents, and the
> other to store form results to be returned to the server or stored in
> localstorage.  I am not using Django templates for anything, but
> rather just going to use TastyPie to provide a REST interface for the
> app's models in order to provide and receive the JSON objects to and
> from the front end. So essentially- just using Django for the back
> end. We also looked at Sencha touch vs. jQMobile for the front end but
> went with jQ Mobile because my front end developer was much more
> comfortable with it and was already familiar with jQuery.  Once we get
> the thing working as an addressable mobile web app, we intend to
> package and wrap it as a PhoneGap app.   I can post an update on our
> success or failures in a month or so when the project has come
> together more.  As of now, just he front end is completed to operate
> on the JSON objects and I am working on the models and REST interface
> for it.
> 
> Ben

Interesting!  Are you avoiding the templates because you feel they will slow 
the app down?  I wonder if PhoneGap would have issues with templates?

I like the idea of going with jQMobile because I like jQuery very much too.  

The REST interface would also be interesting - let us know how that goes!

Johnf

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



Re: anybody using PhoneGap with Django

2011-07-08 Thread br
I am currently in the middle of a project where we are planning on
using Django with PhoneGap . . . Haven't completed yet, or gotten to
the PhoneGap part of it, so can't report its success or not yet.

Basically, we are using jQuery Mobile to develop a complete mobile
application that operates on a pair of cached JSON objects, one to
define the page flow of the application and the page contents, and the
other to store form results to be returned to the server or stored in
localstorage.  I am not using Django templates for anything, but
rather just going to use TastyPie to provide a REST interface for the
app's models in order to provide and receive the JSON objects to and
from the front end. So essentially- just using Django for the back
end. We also looked at Sencha touch vs. jQMobile for the front end but
went with jQ Mobile because my front end developer was much more
comfortable with it and was already familiar with jQuery.  Once we get
the thing working as an addressable mobile web app, we intend to
package and wrap it as a PhoneGap app.   I can post an update on our
success or failures in a month or so when the project has come
together more.  As of now, just he front end is completed to operate
on the JSON objects and I am working on the models and REST interface
for it.

Ben

On Jul 8, 8:01 am, Brian Bouterse  wrote:
> I would be interested to hear this as well...
>
>
>
>
>
>
>
>
>
> On Fri, Jul 8, 2011 at 12:44 AM, John Fabiani  wrote:
> > On Thursday, July 07, 2011 08:48:51 pm Andy McKay wrote:
> > > On 2011-07-07, at 2:22 PM, John Fabiani wrote:
> > > > I'm wondering if anyone has had any success with PhoneGap and Django?
>
> > > Yes.
> > > --
> > >   Andy McKay
> > >   a...@clearwind.ca
> > >   twitter: @andymckay
>
> > LOL - I guess I could have asked a better question.  Can I assume you have
> > had
> > success with Django and PhoneGap?  If so would you take the time to explain
> > in
> > a general your experience with PhoneGap.  I have been told that the
> > combination is very slow - although I don't see any reason that it would
> > be.
> > I was also told that debugging was very difficult.
>
> > Johnf
>
> > --
> > 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.
>
> --
> Brian Bouterse
> ITng Services

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



Re: anybody using PhoneGap with Django

2011-07-08 Thread Brian Bouterse
I would be interested to hear this as well...

On Fri, Jul 8, 2011 at 12:44 AM, John Fabiani  wrote:

> On Thursday, July 07, 2011 08:48:51 pm Andy McKay wrote:
> > On 2011-07-07, at 2:22 PM, John Fabiani wrote:
> > > I'm wondering if anyone has had any success with PhoneGap and Django?
> >
> > Yes.
> > --
> >   Andy McKay
> >   a...@clearwind.ca
> >   twitter: @andymckay
>
> LOL - I guess I could have asked a better question.  Can I assume you have
> had
> success with Django and PhoneGap?  If so would you take the time to explain
> in
> a general your experience with PhoneGap.  I have been told that the
> combination is very slow - although I don't see any reason that it would
> be.
> I was also told that debugging was very difficult.
>
> Johnf
>
> --
> 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.
>
>


-- 
Brian Bouterse
ITng Services

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



Re: anybody using PhoneGap with Django

2011-07-07 Thread John Fabiani
On Thursday, July 07, 2011 08:48:51 pm Andy McKay wrote:
> On 2011-07-07, at 2:22 PM, John Fabiani wrote:
> > I'm wondering if anyone has had any success with PhoneGap and Django?
> 
> Yes.
> --
>   Andy McKay
>   a...@clearwind.ca
>   twitter: @andymckay

LOL - I guess I could have asked a better question.  Can I assume you have had 
success with Django and PhoneGap?  If so would you take the time to explain in 
a general your experience with PhoneGap.  I have been told that the 
combination is very slow - although I don't see any reason that it would be.  
I was also told that debugging was very difficult.

Johnf

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



Re: anybody using PhoneGap with Django

2011-07-07 Thread Andy McKay

On 2011-07-07, at 2:22 PM, John Fabiani wrote:
> I'm wondering if anyone has had any success with PhoneGap and Django?

Yes.
--
  Andy McKay
  a...@clearwind.ca
  twitter: @andymckay
 

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



anybody using PhoneGap with Django

2011-07-07 Thread John Fabiani
Hi guys,
I'm wondering if anyone has had any success with PhoneGap and Django?

Johnf

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