can django be used in destop application?

20 views
Skip to first unread message

smith jack

unread,
Aug 23, 2011, 7:17:50 AM8/23/11
to django...@googlegroups.com
i mean not use django for web site development, but for desktop application,
it seems its orm can be used in destop application, isn't it?

Andy McKay

unread,
Aug 23, 2011, 10:49:03 AM8/23/11
to django...@googlegroups.com

On 2011-08-23, at 4:17 AM, smith jack wrote:

> i mean not use django for web site development, but for desktop application,
> it seems its orm can be used in destop application, isn't it?

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

Yaşar Arabacı

unread,
Aug 23, 2011, 10:53:56 AM8/23/11
to django...@googlegroups.com
I had written something about this earlier, Although the article is in Turkish, you can still understand the django part I guess. It demonstrates how to use django component with other applications, by creating a dummy package manager. http://yasar.serveblog.net/post/djangoda-paket-yoneticisi-yapalm/

2011/8/23 Andy McKay <an...@clearwind.ca>


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




--
http://yasar.serveblog.net/

Subhranath Chunder

unread,
Aug 23, 2011, 12:50:15 PM8/23/11
to django...@googlegroups.com
If ORM is what you are looking for, then you could try SQLAlchemy.


On Tue, Aug 23, 2011 at 4:47 PM, smith jack <thin...@gmail.com> wrote:
i mean not use django for web site development, but for desktop application,
it seems its orm can be used in destop application, isn't it?
--
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.




--
Thanks,
Subhranath Chunder.

Cal Leeming [Simplicity Media Ltd]

unread,
Aug 23, 2011, 1:36:14 PM8/23/11
to django...@googlegroups.com
Curious concept, using Django for a desktop application.

Can't think of any reason why you couldn't at least try it :)

Cal

h3

unread,
Aug 23, 2011, 3:50:51 PM8/23/11
to Django users
Django is modular enough that most of its parts could probably be
replaced with desktop oriented
modules, like rendering QT templates instead of HTML templates.. which
is great.

If not you can probably use a embed browser engine (like webkit) and
run your app like a website
locally and get somewhat the look and feel of a desktop application.

That said, your real problem will arise when your application will
need to do things that doesn't adhere to
the REST api. Then you'll need to find a way to save your application
state and that's pretty much
when shit will hit the fan IMHO.

If the desktop application(s) you want to build are all easily
translatable for the web (using a REST api that is),
I think it's theoretically possible. But try to do anything out of
this scope and you will bitten at every corners.

In other words, not really worth the troubles.

regards,

Max


On Aug 23, 1:36 pm, "Cal Leeming [Simplicity Media Ltd]"
<cal.leem...@simplicitymedialtd.co.uk> wrote:
> Curious concept, using Django for a desktop application.
>
> Can't think of any reason why you couldn't at least try it :)
>
> Cal
>
> On Tue, Aug 23, 2011 at 3:49 PM, Andy McKay <a...@clearwind.ca> wrote:
>
> > On 2011-08-23, at 4:17 AM, smith jack wrote:
>
> > > i mean not use django for web site development, but for desktop
> > application,
> > > it seems its orm can be used in destop application, isn't it?
>
> > Yes.
> > --
> >  Andy McKay
> >  a...@clearwind.ca

Sam Walters

unread,
Aug 23, 2011, 7:59:01 PM8/23/11
to django...@googlegroups.com
Seriously why bother?

http://www.wxpython.org/

The whole front end of django is too web-centric. So the only thing
that might be of use is if you have an existing web application which
heavily uses the django ORM and you want back end consistency with a
desktop GUI application that shares thee same database.

Writing an application with wx-python is less time consuming than
dealing with css+html you wont have the same issues to consider when
thinking about security. wx-python is a 2-3 week learning curve to
become proficient and lots of tutorials out there.

Andre Terra

unread,
Aug 23, 2011, 10:07:49 PM8/23/11
to django...@googlegroups.com

Gelonida N

unread,
Aug 24, 2011, 5:18:09 AM8/24/11
to django...@googlegroups.com
> Curious concept, using Django for a desktop application.
>
> Can't think of any reason why you couldn't at least try it :)
>
> Cal
>
>
Original poster was rather clear I think,

> > it seems its orm can be used in destop application, isn't it?


It could make sense to use Django orms, because one knows already django
orms, but one doesn't know SqlAlchemy or any other orms.

This use case is possible, but not that nicely supported.
you.


You can also search for the thread
"import django models without runing the server",

which would also be applicable for desktop applications using
django orms


On 08/23/2011 07:36 PM, Cal Leeming [Simplicity Media Ltd] wrote:

Thomas Weholt

unread,
Aug 24, 2011, 5:28:22 AM8/24/11
to django...@googlegroups.com
I remember "way back in the day" when Userland was paving way for what
was to become xml-rpc, feeds etc ( if I remeber correcly ), the core
was a web application running at localhost only. Worked great! I like
the idea and allready have a project for something like this. I've
tried wxpython, pyqt etc and I still make stuff way faster using
django. It doesn't fit every project though.

And another thing; there have been discussion about how to distribute
django projects and a django project distributed as a single binary, a
setup.exe on windows for instance? Sounds nice.

Thomas

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

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

kenneth gonsalves

unread,
Aug 25, 2011, 10:49:37 PM8/25/11
to django...@googlegroups.com
On Tue, 2011-08-23 at 18:36 +0100, Cal Leeming [Simplicity Media Ltd]
wrote:

> Curious concept, using Django for a desktop application.
>
> Can't think of any reason why you couldn't at least try it :)
>

use wxpython instead of templates.
--
regards
Kenneth Gonsalves

Juergen Schackmann

unread,
Aug 26, 2011, 10:17:37 AM8/26/11
to django...@googlegroups.com
if you still want to go down the "use django for desktop application" road, you might want to have a look at pyjamas to build your frontend: pyjs.org
Reply all
Reply to author
Forward
0 new messages