diff --git a/api/market/consumers.py b/api/market/consumers.py index 391a0be..531443c 100644 --- a/api/market/consumers.py +++ b/api/market/consumers.py @@ -100,7 +100,7 @@ def market_fetch_job(): dispatch_market_data() -market_scheduler.start() +# market_scheduler.start() class MarketConsumers(WebsocketConsumer): diff --git a/hailstone/settings.py b/hailstone/settings.py index cc6c2d6..0000f81 100644 --- a/hailstone/settings.py +++ b/hailstone/settings.py @@ -56,14 +56,12 @@ DATABASES = { "default": { - "ENGINE": "django.db.backends.mysql", + "ENGINE": "django.db.backends.postgresql", "NAME": "hailstone", - "USER": "root", - "PASSWORD": "123456", - "HOST": "localhost", - "PORT": "3306", - "OPTIONS": {"init_command": "SET sql_mode='STRICT_TRANS_TABLES'"}, - } + "USER": "guoshijiang", + "PASSWORD": "", + "HOST": "127.0.0.1", + }, } AUTH_PASSWORD_VALIDATORS = [