Re: [Django] #31626: Add asgi support to runserver

2023-03-07 Thread Django
#31626: Add asgi support to runserver
-+--
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:  wontfix
 Keywords:  runserver, asgi  | Triage Stage:  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+--
Changes (by Mariusz Felisiak):

 * stage:  Accepted => Unreviewed


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070186bd6a60dc-94bb6e10-24d3-49d0-9644-fdf7222b8fef-00%40eu-central-1.amazonses.com.


Re: [Django] #31626: Add asgi support to runserver

2023-03-07 Thread Django
#31626: Add asgi support to runserver
-+
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:  wontfix
 Keywords:  runserver, asgi  | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 > It could be that we close this as `wontfix`. 樂

 Let's close it.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070186bd6a3eb2-6ed91267-231f-4610-b693-214e4a6cd254-00%40eu-central-1.amazonses.com.


Re: [Django] #31626: Add asgi support to runserver

2023-03-07 Thread Django
#31626: Add asgi support to runserver
-+
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:
 Keywords:  runserver, asgi  | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by Mariusz Felisiak ):

 In [changeset:"d89d517f90851654afb1073174b3c75d08452f3c" d89d517]:
 {{{
 #!CommitTicketReference repository=""
 revision="d89d517f90851654afb1073174b3c75d08452f3c"
 [4.2.x] Refs #31626 -- Noted that Daphne provides a runserver command.

 Backport of 279e611c017b5fcc055263e760de1495a9098ede from main
 }}}

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070186bd685aea-6e046cac-9dfa-4918-8ac2-b73f993f03c0-00%40eu-central-1.amazonses.com.


Re: [Django] #31626: Add asgi support to runserver

2023-03-07 Thread Django
#31626: Add asgi support to runserver
-+
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:
 Keywords:  runserver, asgi  | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by GitHub ):

 In [changeset:"279e611c017b5fcc055263e760de1495a9098ede" 279e611]:
 {{{
 #!CommitTicketReference repository=""
 revision="279e611c017b5fcc055263e760de1495a9098ede"
 Refs #31626 -- Noted that Daphne provides a runserver command.
 }}}

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070186bd67c2d6-fee5b364-076c-463e-b9cd-9c5e9a6c376e-00%40eu-central-1.amazonses.com.


Re: [Django] #31626: Add asgi support to runserver

2023-03-07 Thread Django
#31626: Add asgi support to runserver
-+
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:
 Keywords:  runserver, asgi  | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Carlton Gibson):

 * has_patch:  0 => 1


Comment:

 I've created a PR to doc that Daphne provided a `runserver`
 implementation. ([https://github.com/django/django/pull/16634 PR])

 You enable it like this:

 {{{
 INSTALLED_APPS = [
 "daphne",
 ...
 ]
 }}}

 Other packages could do similar easily enough.

 I'm not 100% convinced it's worth extra code to scan installed
 dependencies, and check it they provide a `runsever`.

 It could be that we close this as `wontfix`. 樂

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070186bbba5645-d8c5a8ca-06f4-4e51-b89e-e9e035db7dc5-00%40eu-central-1.amazonses.com.


Re: [Django] #31626: Add asgi support to runserver

2020-06-29 Thread Django
#31626: Add asgi support to runserver
-+
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:
 Keywords:  runserver, asgi  | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by sethmlarson):

 Hey! So I recently had a user hit this issue when using the recently added
 async support to the Elasticsearch client library.

 See here: https://github.com/elastic/elasticsearch-py/issues/1303

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.6f2531882a76a141362455d3c330a465%40djangoproject.com.


Re: [Django] #31626: Add asgi support to runserver

2020-06-03 Thread Django
#31626: Add asgi support to runserver
-+
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:
 Keywords:  runserver, asgi  | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Carlton Gibson):

 * status:  closed => new
 * resolution:  needsinfo =>


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.f0756bfdce2e5182768b31525fae8655%40djangoproject.com.


Re: [Django] #31626: Add asgi support to runserver

2020-06-03 Thread Django
#31626: Add asgi support to runserver
-+-
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  HTTP handling|  Version:  3.0
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:  runserver, asgi  | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Carlton Gibson):

 * keywords:   => runserver, asgi
 * component:  Uncategorized => HTTP handling
 * stage:  Unreviewed => Accepted


Comment:

 OK, let's accept this as a new feature.

 The suggestion in the forum thread is to detect if Daphne or uvicorn or
 ... is installed and then use that.

 In the draft PR looks like importing Daphne in a `try` block, which I´m
 not sure about at all.
 Is there a way we can detect the asgi server without hard-coding imports?

 I'd imagined a server based off of Python's `http.server`, as we have for
 WSGI, either in Django or `asigref` as appropriate.


 In the meantime, 3.1 could probably do with some docs, saying to install
 channels (to use it's runserver) or uvicorn (which has a `--reload`
 option).

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.555f751e55920ce0761889116e5c19ae%40djangoproject.com.


Re: [Django] #31626: Add asgi support to runserver

2020-05-26 Thread Django
#31626: Add asgi support to runserver
-+--
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Uncategorized|  Version:  3.0
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+--
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 I'm going to momentarily close this as `needsinfo` — let's continue the
 discussion on the forum thread: we can re-open if it's agreed to bundle
 this.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.965b45b60fb10386bd18ed1618d94273%40djangoproject.com.


Re: [Django] #31626: Add asgi support to runserver

2020-05-24 Thread Django
#31626: Add asgi support to runserver
-+--
 Reporter:  Joshua Massover  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Uncategorized|  Version:  3.0
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+--
Description changed by Joshua Massover:

Old description:

> Conversation about this ticket can be found on the
> [https://forum.djangoproject.com/t/adding-asgi-support-to-runserver/2446
> django forum]
>
> It would be great to add an `asgi` flag such that runserver will "just
> work" with ASGI. eg.
>
> `./manage.py runserver --asgi`
>
> The 4 options I've thought of are the following:
>
> 1. Update runserver in django in a way that keeps the daphne import
> optional.
> 2. Add daphne as a dependency to django and update runserver.
> 3. Maintain a separate django app that holds the command that integrates
> daphne with runserver. Reference the app in asgi section of the django
> documentation.
> 4. Add the commands to the daphne repository, perhaps allowing us to add
> daphne as an installed app so the command is discovered, and reference
> this in the asgi section of the django documentation.
>
> I have an [https://github.com/django/django/pull/12969 initial pr] for
> (1). This code depends on #31594.

New description:

 Previous conversation about this ticket can be found on the
 [https://forum.djangoproject.com/t/adding-asgi-support-to-runserver/2446
 django forum]

 It would be great to add an `asgi` flag such that runserver will "just
 work" with ASGI. eg.

 `./manage.py runserver --asgi`

 The 4 options I've thought of are the following:

 1. Update runserver in django in a way that keeps the daphne import
 optional.
 2. Add daphne as a dependency to django and update runserver.
 3. Maintain a separate django app that holds the command that integrates
 daphne with runserver. Reference the app in asgi section of the django
 documentation.
 4. Add the commands to the daphne repository, perhaps allowing us to add
 daphne as an installed app so the command is discovered, and reference
 this in the asgi section of the django documentation.

 I have an [https://github.com/django/django/pull/12969 initial pr] for
 (1). This code depends on #31594.

--

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.ab9b35e81ea21582240f983501f43363%40djangoproject.com.


[Django] #31626: Add asgi support to runserver

2020-05-24 Thread Django
#31626: Add asgi support to runserver
---+
   Reporter:  Joshua Massover  |  Owner:  nobody
   Type:  New feature  | Status:  new
  Component:  Uncategorized|Version:  3.0
   Severity:  Normal   |   Keywords:
   Triage Stage:  Unreviewed   |  Has patch:  0
Needs documentation:  0|Needs tests:  0
Patch needs improvement:  0|  Easy pickings:  0
  UI/UX:  0|
---+
 Conversation about this ticket can be found on the
 [https://forum.djangoproject.com/t/adding-asgi-support-to-runserver/2446
 django forum]

 It would be great to add an `asgi` flag such that runserver will "just
 work" with ASGI. eg.

 `./manage.py runserver --asgi`

 The 4 options I've thought of are the following:

 1. Update runserver in django in a way that keeps the daphne import
 optional.
 2. Add daphne as a dependency to django and update runserver.
 3. Maintain a separate django app that holds the command that integrates
 daphne with runserver. Reference the app in asgi section of the django
 documentation.
 4. Add the commands to the daphne repository, perhaps allowing us to add
 daphne as an installed app so the command is discovered, and reference
 this in the asgi section of the django documentation.

 I have an [https://github.com/django/django/pull/12969 initial pr] for
 (1). This code depends on #31594.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.019f751f980331042149ec3bbc4fa857%40djangoproject.com.