Since wxpython is a python module and if you can run python code in django apps then you should be able to run wxpython code provided the right modules are imported--just like any other python module. What I was thinking of doing is either embed some wxpython code within html to render the different pages of the django app or call wxpython functions from the html template. All the code resides on the server of course. The user interacts with the app through the web page. So the forms would be rendered by wxpython instead of html. I don't know if this is clearer or if what I am thinking of is feasible at all.
On Thu, Mar 31, 2011 at 6:33 PM, Calvin Spealman <ironfroggy@gmail.com> wrote:
Then on what machine would the wx version run on? The user's machine
or the server? If on the user's machine, how does it talk to the
database? If on the server, how does the user interact with it?
--
On Thu, Mar 31, 2011 at 9:04 AM, Aref Nammari <arefnammari@gmail.com> wrote:
> Calvin,
>
> The database as well as the django app sits on a server
> (internal--this is not meant for public access by the general public).
> To access the app users would have to login to the server through http
> and run the app from there.
>
> On 3/31/11, Calvin Spealman <ironfroggy@gmail.com> wrote:
>> Aref,
>>
>> The question I would have is where your database sits. Is it supposed
>> to sit on a central server? In a website, your database only needs to
>> be accessed by machine rendering the pages. If you want the same
>> database talking to desktop applications, you need to let those apps
>> talk to the database or run the database on individual users'
>> machines. This is the part that concerns me, especially giving those
>> users access to a central DB.
>>
>> On Thu, Mar 31, 2011 at 7:05 AM, Aref Nammari <arefnammari@gmail.com> wrote:
>>> Thanks for the reply Calvin. I realize what django is about and what it is
>>> meant for and I do understand what WxPython is capable of. I still think
>>> that this does not prevent using wxpython as a frontend for django
>>> app--instead of (or in conjunction with) HTML to render the page Iam
>>> thinking that I should be able to use wxpython--pass the data to wxpython
>>> module to display and take data from a form rendered with wxpython and
>>> send
>>> to django. This must doable I think.
>>>
>>> On Wed, Mar 30, 2011 at 8:24 PM, Calvin Spealman <ironfroggy@gmail.com>
>>> wrote:
>>>>
>>>> They are completely unrelated. WX is a library for working with
>>>> desktop-based UI toolkits, and Django is a framework for producing and
>>>> delivering HTML/CSS/JS web content to a browser.
>>>>
>>>> On Wed, Mar 30, 2011 at 10:03 PM, Aref <arefnammari@gmail.com> wrote:
>>>> > Hello,
>>>> >
>>>> > I have created a small app with wxpython to manage and query databases
>>>> > and now I am learning django and was wondering if it is possible to
>>>> > incorporate some of the wxpython code in django. What I am trying to
>>>> > do is to create the same app as the one in wxpython but make it web-
>>>> > based rather than desktop. I know the django admin does that but I
>>>> > wanted to learn how to create web based apps and thought that would be
>>>> > a good exercise. Thanks for any pointers or ideas.
>>>> >
>>>> > --
>>>> > 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+unsubscribe@googlegroups.com.
>>>> > For more options, visit this group at
>>>> > http://groups.google.com/group/django-users?hl=en.
>>>> >
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Read my blog! I depend on your acceptance of my opinion! I am
>>>> interesting!
>>>> http://techblog.ironfroggy.com/
>>>> Follow me if you're into that sort of thing:
>>>> http://www.twitter.com/ironfroggy
>>>
>>>
>>
>>
>>
>> --
>> Read my blog! I depend on your acceptance of my opinion! I am interesting!
>> http://techblog.ironfroggy.com/
>> Follow me if you're into that sort of thing:
>> http://www.twitter.com/ironfroggy
>>
>
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment