Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含所有数据的旧数据库,并且我有单独的查询来检索数据。
我想做的是在 django 上运行一组 sql 语句和缓存数据,但我只想在服务器重新启动或缓存被清除时运行它。
谁能告诉我应该把这些 sql 语句 init.py 放在哪里?