Skip to content

Commit

Permalink
change database mysql to postgres (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: guoshijiang <[email protected]>
  • Loading branch information
guoshijiang and guoshijiang authored Mar 2, 2024
1 parent 403843a commit 047199a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/market/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def market_fetch_job():
dispatch_market_data()


market_scheduler.start()
# market_scheduler.start()


class MarketConsumers(WebsocketConsumer):
Expand Down
12 changes: 5 additions & 7 deletions hailstone/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 047199a

Please sign in to comment.