Re: Django + QT4

2009-10-01 Thread Markus Stumpf

On Wed, Sep 23, 2009 at 01:59:35PM -0700, Gustavo Henrique wrote:
> Is possible use django with qt4 for desktop apps?
> if yes, where I can find about this? anyone have a example to study?

A bit late maybe, but I stumbled over this today:
http://www.conceptive.be/~downloads/camelot/doc/sphinx/build/

It is not exactly with django, but looks close enough at first glance,
that maybe with a few tweaks ...

\Maex


--~--~-~--~~~---~--~~
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: Django + QT4

2009-09-24 Thread Javier Rivera

Gustavo Henrique escribiu:
> Hi guys!
> Is possible use django with qt4 for desktop apps?

Sure. Two years ago I used Qt4 and the django template system, with an 
old version of this script 
(http://code.google.com/p/django-opendocument/), to add some reports to 
a Tinapos installation.

Tinapos is a small opensource java-based POS. It has been bought by 
OpenBravo (a big open source ERP based on Compiere) and integrated into 
it a year ago, so I don't expect my app to work with a modern version.

> if yes, where I can find about this? anyone have a example to study?

I only used the django templates, I use direct (and ugly and dirty) 
Mysql queries instead of using the django ORM, so I don't know if it's 
going to be useful for you, but I can upload it to google code, if you 
desire.

Best regards,

Javier.

--~--~-~--~~~---~--~~
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: Django + QT4

2009-09-23 Thread Alvaro Mouriño

On Thu, Sep 24, 2009 at 12:39 AM, Brian McKeever  wrote:
>
> That's a little different.
>
> If you want your desktop apps to all directly connect to your server
> database, I'm not sure what security issues you'd be exposing yourself
> to. I figured you wanted a local database where it wouldn't matter if
> the user messed it up.
>
> I mean, I'm not saying it can't be done. I just think it might require
> changing django internals (which is probably more complicated than you
> want). Although, I don't know enough about that aspect of django to
> say for sure.

Maybe I'm missing something but I don't see why should django
internals be changed. I'm not saying it's easy, but he would have to
implement (or find a module [0] that does) the browser's capabilities
for cookie management [1] or secure connections [2] (like certificate
verification.) I would treat it like an AJAX application in the sense
that he only needs to access the data, not the markup.

Gustavo, if you achieve this please tell us about your experience.
I've thought about doing this before but never found a really good
reason to get into it. You can find useful information on the net [3].

Good luck.

[0] http://docs.python.org/library/webbrowser.html
[1] http://docs.python.org/library/cookielib.html
[2] http://docs.python.org/library/httplib.html
[3] http://www.google.com.uy/search?q=django+desktop

-- 
Alvaro Mouriño

--~--~-~--~~~---~--~~
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: Django + QT4

2009-09-23 Thread Brian McKeever

That's a little different.

If you want your desktop apps to all directly connect to your server
database, I'm not sure what security issues you'd be exposing yourself
to. I figured you wanted a local database where it wouldn't matter if
the user messed it up.

I mean, I'm not saying it can't be done. I just think it might require
changing django internals (which is probably more complicated than you
want). Although, I don't know enough about that aspect of django to
say for sure.

If I had that problem, I would look into something that can do:
http://en.wikipedia.org/wiki/Representational_State_Transfer
but I know even less about that. =)

On Sep 23, 9:01 pm, Gustavo Henrique  wrote:
> I don't have much experience in pyhon and I need to create a desktop app to
> works as complement to website made with django, both using same database.
> So, I thing to use django with python + pyqt/pygtk/wxpython for database
> management.
>
> Thanks Brian!
--~--~-~--~~~---~--~~
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: Django + QT4

2009-09-23 Thread Mike Ramirez
On Wednesday 23 September 2009 20:01:41 Gustavo Henrique wrote:
> I don't have much experience in pyhon and I need to create a desktop app to
> works as complement to website made with django, both using same database.
> So, I thing to use django with python + pyqt/pygtk/wxpython for database
> management.
> 
> Thanks Brian!
> 

You might have better luck with sqlalchemy or QtSql over djangos orm.  But 
this is only because I think setting up django to work outside of it's normal 
environment is a pain.  

Mike
-- 
/*
 * [...] Note that 120 sec is defined in the protocol as the maximum
 * possible RTT.  I guess we'll have to use something other than TCP
 * to talk to the University of Mars.
 * PAWS allows us longer timeouts and large windows, so once implemented
 * ftp to mars will work nicely.
 */
-- from /usr/src/linux/net/inet/tcp.c, concerning RTT [round trip time]


signature.asc
Description: This is a digitally signed message part.


Re: Django + QT4

2009-09-23 Thread Gustavo Henrique
I don't have much experience in pyhon and I need to create a desktop app to
works as complement to website made with django, both using same database.
So, I thing to use django with python + pyqt/pygtk/wxpython for database
management.

Thanks Brian!

--~--~-~--~~~---~--~~
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: Django + QT4

2009-09-23 Thread Brian McKeever

I imagine you're talking about using django models for database
management?

There's nothing stopping you really. Django is just a python program.

All you need to do is:
Create a django project (as per the tutorial). Set up the database
like normal in your settings file.

Create your app with manage.py startapp app_name

Add it to your INSTALLED_APPS setting in your settings.py file (and
you can probably delete auth, admin, and sites while you're there)

Then, you can define your models as normal in your app_name/models.py
file and use them wherever you import them.

I hope that's helpful. I'm sorry I don't have an example.



On Sep 23, 2:59 pm, Gustavo Henrique  wrote:
> Hi guys!
> Is possible use django with qt4 for desktop apps?
> if yes, where I can find about this? anyone have a example to study?
>
> Thanks!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---