1

我重新安装了 taiga-back(还有 taiga-front,但我想,没关系)。我正在关注官方文档(生产模式)的每一步。但!当我尝试运行“测试”后端(使用 python manage.py runserver 命令)以查看一切正常时(192.168.1.241:8000/api/v1,它在 ubuntu 服务器上运行,我在 shell 中工作联系)。我无法访问该站点。我的连接被拒绝。

我的本地.py

from .common import *

MEDIA_URL = "http://localhost/media/"
STATIC_URL = "http://localhost/static/"
SITES["front"]["scheme"] = "http"
SITES["front"]["domain"] = "localhost"

SECRET_KEY = "secret"

DEBUG = False
PUBLIC_REGISTER_ENABLED = False

DEFAULT_FROM_EMAIL = "dev@example.com"
SERVER_EMAIL = DEFAULT_FROM_EMAIL

#CELERY_ENABLED = True

EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend"
EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://taiga:PASSWORD_FOR_EVENTS@localhost:5672/taiga"}

感谢大家的帮助!

4

0 回答 0