Replies: 2 comments
-
|
随便起个python环境,生成一个就行了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
自己随便填个32位字符串 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
切换python运行环境
修改重定向端口
启动nginx
收集所有的静态文件到STATIC_ROOT
Traceback (most recent call last):
File "/opt/archery/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/venv4archery/lib/python3.11/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/opt/venv4archery/lib/python3.11/site-packages/django/core/management/init.py", line 420, in execute
django.setup()
File "/opt/venv4archery/lib/python3.11/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/venv4archery/lib/python3.11/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv4archery/lib/python3.11/site-packages/django/apps/config.py", line 123, in create
mod = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/venv4archery/lib/python3.11/site-packages/django_q/apps.py", line 3, in
from django_q.conf import Conf
File "/opt/venv4archery/lib/python3.11/site-packages/django_q/conf.py", line 31, in
class Conf:
File "/opt/venv4archery/lib/python3.11/site-packages/django_q/conf.py", line 171, in Conf
SECRET_KEY = settings.SECRET_KEY
^^^^^^^^^^^^^^^^^^^
File "/opt/venv4archery/lib/python3.11/site-packages/django/conf/init.py", line 101, in getattr
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
启动Django Q cluster
启动服务
[2026-04-08 12:30:25 +0800] [21] [INFO] Starting gunicorn 22.0.0
[2026-04-08 12:30:25 +0800] [21] [INFO] Listening at: http://127.0.0.1:8888 (21)
[2026-04-08 12:30:25 +0800] [21] [INFO] Using worker: sync
[2026-04-08 12:30:25 +0800] [22] [INFO] Booting worker with pid: 22
[2026-04-08 12:30:25 +0800] [23] [INFO] Booting worker with pid: 23
[2026-04-08 12:30:25 +0800] [24] [INFO] Booting worker with pid: 24
[2026-04-08 12:30:25 +0800] [25] [INFO] Booting worker with pid: 25
[2026-04-08 12:30:25 +0800] [22] [ERROR] Exception in worker process
Beta Was this translation helpful? Give feedback.
All reactions