daphne icon indicating copy to clipboard operation
daphne copied to clipboard

python manage.py runserver not working

Open IMOWWW opened this issue 1 year ago • 5 comments

I have everything set up correctly, but the project does not run as async

System check identified no issues (0 silenced). April 10, 2024 - 18:56:40 Django version 4.2.8, using settings 'ChatProject.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.

IMOWWW avatar Apr 10 '24 19:04 IMOWWW

I solved this problem by changing the version from daphne==4.1.1 to daphne==4.0.0

IMOWWW avatar Apr 10 '24 19:04 IMOWWW

OK, this works for me with 4.1.0, but not 4.1.1.

Let's reopen: it's not fixed by you reverting to an earlier version.

carltongibson avatar Apr 10 '24 23:04 carltongibson

I met the same problem when i update daphne version, 4.1.1 package missing management/commands/runserver.py so runserver wont work with daphne.

1One0 avatar Apr 11 '24 07:04 1One0

@1One0 Thanks for confirming.

4.1.1 fixed one packaging issue in 4.1.0, only to introduce another. (Never change the packaging 🤦)

Fix coming later today.

carltongibson avatar Apr 11 '24 08:04 carltongibson

would be helpful if it was mentioned in changelog of 4.1.2 that runserver doesnt work with daphne 4.1.1, spent two days rewriting django channels setup to figure out why websockets were not working,

was working with docker base images and my dev server build from last week was using 4.1.1 :cry: our staging server base img had 4.1.0

joseseb91 avatar Apr 18 '24 07:04 joseseb91