Ran black on sources, some minor tweaks
This commit is contained in:
parent
5e18dcc562
commit
05f2264eb1
4 changed files with 14 additions and 19 deletions
|
|
@ -115,7 +115,10 @@ def check_warnings(settings):
|
|||
print(" [Devel: settings.IN_GAME_ERRORS is True. Turn off in production.]")
|
||||
if settings.ALLOWED_HOSTS == ["*"]:
|
||||
print(" [Devel: settings.ALLOWED_HOSTS set to '*' (all). Limit in production.]")
|
||||
for k,v in settings.DATABASES.items():
|
||||
if "psycopg" in v.get("ENGINE",None):
|
||||
print(" [Devel: postgresql_psycopg2 backend is deprecated. This module is now called postgresql")
|
||||
print(" Switch settings.DATABASES to use \"ENGINE\": \"django.db.backends.postgresql\"")
|
||||
for dbentry in settings.DATABASES.values():
|
||||
if "psycopg" in dbentry.get("ENGINE", ""):
|
||||
print(
|
||||
'Deprecation: postgresql_psycopg2 backend is deprecated". '
|
||||
"Switch settings.DATABASES to use "
|
||||
'"ENGINE": "django.db.backends.postgresql instead"'
|
||||
)
|
||||
|
|
|
|||
|
|
@ -190,7 +190,6 @@ class Portal(object):
|
|||
self.sessions.disconnect_all()
|
||||
if _stop_server:
|
||||
self.amp_protocol.stop_server(mode="shutdown")
|
||||
|
||||
if not _reactor_stopping:
|
||||
# shutting down the reactor will trigger another signal. We set
|
||||
# a flag to avoid loops.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue