The reason I wanted Django was to insure that the data is valid (using python).   When they enter the data and the submit button is clicked I want to be able to modify the response using python.

So what I'm hearing from the list - is that in general - people are not using the Django template system.  Is that right?

I have been doing a little research and have discovered a couple of javascript tools that allow multi - windows/forms/dialogs/frames.   But then - like you said - I'm replacing the Django template system.

It seems that web UI is still not up to the desktop abilities. That's not good.  BTW I was looking at Electron and discovered that it can easily match the desktop multi-window and it's using web tech.  So I'm guessing it is possible but not often requested.

Johnf


On 01/18/2018 09:48 AM, Andréas Kühne wrote:
Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages render one page at a time in one webbrowser window. That is the way HTML works.

You can via javascript do some funky things, like Single page applications - but then most of the templating engine in django isn't used. You could create templates on the backend and send them via ajax to the frontend but that is mainly used for rendering partial pages and not for complete pages. Also, it would be really cumbersome to write the code.

If you already have a REST backend, why do you need django at all? Django isn't the best framework for getting information from a REST API and then publishing the information. You really should be looking into running a single page application in that case...

Django can be used to create a REST backend for the single page application however.

Regards,

Andréas

2018-01-18 17:25 GMT+01:00 johnf <jo...@jfcomputer.com <mailto:jo...@jfcomputer.com>>:

    I have the backend covered with REST.   When I try to google
    hybrid google comes up with hybrid mobile apps.  I did find
    fragment.js but I don't see any type of real information on how to
    use it.   I did find some info on javascript and multi-windows but
    here again it looks like it wants to replace the template system
    that Django uses.

    It just seems to me that this issue must have come up in the
    past.  There must be a solution provided by Django without
    replacing parts of the Django framework????

    Johnf


    On 01/18/2018 06:22 AM, Jani Tiainen wrote:
    Hi.

    Yes and no. Usually you do SPA, a single page application, that
    just talks to backend, Django in this case, using some means.
    REST api and JSON data is quite common.

    So basically you need only one template that fires up rest of
    your interface.

    There are though alternative approaches like using hybrid of JS
    library to request HTML fragments and render them using JS.
    Fragments then are generated using templates.

    18.1.2018 15.46 "johnf" <jo...@jfcomputer.com
    <mailto:jo...@jfcomputer.com>> kirjoitti:

        But doesn't Django provide the template system?  Do you
        replace the template system with DoyuoToolkit?

        Johnf



        On 01/18/2018 05:43 AM, Jani Tiainen wrote:

            Hi,

            This actually doesn't have anything to do with Django,
            but frontend. Basically you need to pick some Javascript
            UI framework that supports features you're after.

            Personally I've only used Dojotoolkit (free, nicely
            licensed) and ExtJS (commercial).

            On 18.1.2018 15.07, johnf wrote:

                Hi,

                I have a desktop CRUD application that allows the
                same form to be opened many times.  Example: I can
                open a customer's (A) record in one window/form and
                then from the first window/form (customer A's) open a
                second or third window to process customer B or
                customer C etc... all without closing any of the
                windows/forms. IOW I can have many windows open at
                the same time all using the same form with different
                customer records.

                How can I do this with Django?  I would like to
                replace the desktop app with a web app using Django.


                Johnf



-- 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
        <mailto:django-users%2bunsubscr...@googlegroups.com>.
        To post to this group, send email to
        django-users@googlegroups.com
        <mailto:django-users@googlegroups.com>.
        Visit this group at
        https://groups.google.com/group/django-users
        <https://groups.google.com/group/django-users>.
        To view this discussion on the web visit
        
https://groups.google.com/d/msgid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com
        
<https://groups.google.com/d/msgid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com>.


        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.


-- 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
    <mailto:django-users+unsubscr...@googlegroups.com>.
    To post to this group, send email to
    django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
    Visit this group at https://groups.google.com/group/django-users
    <https://groups.google.com/group/django-users>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/django-users/CAHn91ofZjaRdNntVNGqf3EQwDDebE3umWqM6qqwDf-Z4RSsa0w%40mail.gmail.com
    
<https://groups.google.com/d/msgid/django-users/CAHn91ofZjaRdNntVNGqf3EQwDDebE3umWqM6qqwDf-Z4RSsa0w%40mail.gmail.com?utm_medium=email&utm_source=footer>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

-- 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
    <mailto:django-users+unsubscr...@googlegroups.com>.
    To post to this group, send email to django-users@googlegroups.com
    <mailto:django-users@googlegroups.com>.
    Visit this group at https://groups.google.com/group/django-users
    <https://groups.google.com/group/django-users>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/django-users/7449fab6-b78a-bfd6-3003-dcaf0fb34827%40jfcomputer.com
    
<https://groups.google.com/d/msgid/django-users/7449fab6-b78a-bfd6-3003-dcaf0fb34827%40jfcomputer.com?utm_medium=email&utm_source=footer>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.


--
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 <mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCfSGtsbhEME%3D7qqdxB--UMiRaSX9Rm9yzfQMDN7PSqrTA%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CAK4qSCfSGtsbhEME%3D7qqdxB--UMiRaSX9Rm9yzfQMDN7PSqrTA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/182109c4-e81e-73cd-c2d5-ac1c3e210021%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to