Is "channels" in INSTALLED_APPS required in production? #1632
-
Hello! The documentation states that we should add "channels" to INSTALLED_APPS. This will in turn enable Question: Are there any drawbacks to not including 'channels' in INSTALLED_APPS? I'm considering to include the "channels" application only when DEBUG is enabled. Background: I'm running an application that also starts a lot of background processes, each importing the settings and therefore channels (+daphne and dependencies) as well. That's quite a bit of allocated resources that aren't exactly needed, and the app is also supposed to run decent on low power devices. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Installed apps are needed for detection of models, commands and templates. (I think that's it). Likely yes, you don't need those. |
Beta Was this translation helpful? Give feedback.
-
After we had the same issues like #1639 and our production server workers did not boot up, then removing channels from INSTALLED_APPS fixed that problem for us and everything seems to work fine so far. |
Beta Was this translation helpful? Give feedback.
Installed apps are needed for detection of models, commands and templates. (I think that's it).
Likely yes, you don't need those.