mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
Our recent fixes to using the system's configured memcached settings broke populate_db, because its hacky clear_database helper is called with a hacked-up settings module. We fix this by first moving this out-of-place code from models.py into populate_db, and then saving the settings required to access memcached so that we can use them in clear_database. We also fix a mypy erorr in flush-memcached that matches the same issue fixed in clear_database.
This directory contains scripts that:
-
Generally do not require access to Django or the database (those are "management commands"), and thus are suitable to run operationally.
-
Are useful for managing a production deployment of Zulip (many are also used in a Zulip development environment, though development-only scripts live in
tools/).
For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.