1

I'm deploying a django app including django channels using nginx, gunicorn and daphne. But when i install daphne with sudo apt install daphne, it gives E: unable to locate package daphne.

What Should I do?

1 Answers1

1

Daphne is a Python package on PyPI that can be installed using pip:

pip install daphne
D Malan
  • 10,272
  • 3
  • 25
  • 50
  • So isn't daphne required as a ubuntu package too? If I check installed ubuntu packages, daphne isn't there but its present in pip freeze. So would this make a difference? –  Nov 23 '20 at 16:02
  • Nope, you only need to install it with pip. – D Malan Nov 25 '20 at 13:44
  • By the way, I'm having problems with deployment... socket connects on page load but as soon as i send a message in the chat application, the socket disconnects.. Any ideas what could be causing this? –  Nov 25 '20 at 14:21