[Django] #30296: Add how-to guide for JavaScript frameworks integration

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Django] #30296: Add how-to guide for JavaScript frameworks integration

Django
#30296: Add how-to guide for JavaScript frameworks integration
-------------------------------------+-------------------------------------
               Reporter:  Maciej     |          Owner:  nobody
  Olko                               |
                   Type:  New        |         Status:  new
  feature                            |
              Component:             |        Version:
  Documentation                      |       Keywords:  javascript, rest,
               Severity:  Normal     |  api, assets
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Question "How do I get Django and my JS framework to work together?" is
 common question being searched on the Internet {1}{2} so it should be
 vital to have at least introduction to this topic in Django's
 documentation.

 How-to guide would consist of two parts (B and C original descriptions by
 Ayeric Augustin {3}):

 A. Consider brief introduction how to make JSON response, what is a REST
 API and link to API creation Django Packages grid?

 B. Singe Page App model description — where Django only serves the API

 We would need to explain CORS and CSRF in the clearest terms possible.
 Many devs end up shotgun-debugging CORS or CSRF errors, which always
 results in insecure deployments. (…) Perhaps a condensed version of Django
 React SPA Aymeric's blog post {4} could do the job? (…)

 C. Description of integrating a modern JS framework with
 django.contrib.staticfiles

 (…) The docs should at least give the general idea of "compile your
 frontend to somewhere Django can find the files, then run collectstatic".

 Discussion on django-developers: https://groups.google.com/d/topic/django-
 developers/KVAZkRCq9KU/discussion

 Related:
 * https://fractalideas.com/blog/making-react-and-django-play-well-
 together/
 * https://fractalideas.com/blog/making-react-and-django-play-well-
 together-hybrid-app-model/
 * https://fractalideas.com/blog/making-react-and-django-play-well-
 together-single-page-app-model/
 * https://djangopackages.org/grids/g/api/
 * https://djangopackages.org/grids/g/asset-managers/
 * https://djangopackages.org/packages/p/django-cors-headers/
 * https://code.djangoproject.com/wiki/AJAX

 {1} https://stackoverflow.com/questions/41867055/how-to-get-django-and-
 reactjs-to-work-together
 {2} https://stackoverflow.com/questions/28590177/django-back-end-with-a
 -dynamic-front-end-angularjs
 {3} https://groups.google.com/d/msg/django-
 developers/KVAZkRCq9KU/rt24LMnPCAAJ
 {4} https://fractalideas.com/blog/making-react-and-django-play-well-
 together-single-page-app-model/

--
Ticket URL: <https://code.djangoproject.com/ticket/30296>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.fd86a6a7e481ebcaabf0fe713e653118%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #30296: Add how-to guide for JavaScript frameworks integration

Django
#30296: Add how-to guide for JavaScript frameworks integration
-------------------------------------+-------------------------------------
     Reporter:  Maciej Olko          |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Documentation        |                  Version:
     Severity:  Normal               |               Resolution:
     Keywords:  javascript, rest,    |             Triage Stage:  Accepted
  api, assets                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * stage:  Unreviewed => Accepted


Comment:

 Accepting, yes. This kind of guide would be great I think. (I guess the
 difficulty is pitching it exactly right, but that's implementation... 🙂)

--
Ticket URL: <https://code.djangoproject.com/ticket/30296#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.f85f45b235520d40bfbe619e40de3016%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #30296: Add how-to guide for JavaScript frameworks integration

Django
In reply to this post by Django
#30296: Add how-to guide for JavaScript frameworks integration
-------------------------------------+-------------------------------------
     Reporter:  Maciej Olko          |                    Owner:  Josef
                                     |  Rousek
         Type:  New feature          |                   Status:  assigned
    Component:  Documentation        |                  Version:
     Severity:  Normal               |               Resolution:
     Keywords:  javascript, rest,    |             Triage Stage:  Accepted
  api, assets                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Josef Rousek):

 * owner:  nobody => Josef Rousek
 * status:  new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/30296#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.eba5d0290f53dc0ccfb181ac829c716a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #30296: Add how-to guide for JavaScript frameworks integration

Django
In reply to this post by Django
#30296: Add how-to guide for JavaScript frameworks integration
-------------------------------------+-------------------------------------
     Reporter:  Maciej Olko          |                    Owner:  Josef
                                     |  Rousek
         Type:  New feature          |                   Status:  assigned
    Component:  Documentation        |                  Version:
     Severity:  Normal               |               Resolution:
     Keywords:  javascript, rest,    |             Triage Stage:  Accepted
  api, assets                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by tapaswenipathak):

 Hello folks: Can I take the ticket or the ticket is for internal folks?

--
Ticket URL: <https://code.djangoproject.com/ticket/30296#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.ba1622684353edab6df82cbad69874e6%40djangoproject.com.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #30296: Add how-to guide for JavaScript frameworks integration

Django
In reply to this post by Django
#30296: Add how-to guide for JavaScript frameworks integration
-------------------------------------+-------------------------------------
     Reporter:  Maciej Olko          |                    Owner:  Josef
                                     |  Rousek
         Type:  New feature          |                   Status:  assigned
    Component:  Documentation        |                  Version:
     Severity:  Normal               |               Resolution:
     Keywords:  javascript, rest,    |             Triage Stage:  Accepted
  api, assets                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Josef Rousek):

 Replying to [comment:3 tapaswenipathak]:
 > Hello folks: Can I take the ticket or the ticket is for internal folks?

 Hi there. Feel free to take it. I created a repo with basic guide, but
 haven't got back. https://github.com/stlk/django-webpack

--
Ticket URL: <https://code.djangoproject.com/ticket/30296#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.af5f8048e69c79e1df09e4cc71ed4fc2%40djangoproject.com.