MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / collect_static

Function collect_static

main.py:18–29  ·  view source on GitHub ↗

收集静态文件到指定目录 本项目主要是将前端vue/dist的前端项目放到静态目录下面 :return:

()

Source from the content-addressed store, hash-verified

16
17
18def collect_static():
19 """
20 收集静态文件到指定目录
21 本项目主要是将前端vue/dist的前端项目放到静态目录下面
22 :return:
23 """
24 logging.info("Collect static files")
25 try:
26 management.call_command('collectstatic', '--no-input', '-c', verbosity=0, interactive=False)
27 logging.info("Collect static files done")
28 except:
29 pass
30
31
32def perform_db_migrate():

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected