Don't initialize Review Board when creating database models.
Review Request #10069 — Created July 5, 2018 and submitted — Latest diff uploaded
In a development environment, running
manage.py syncdb
would call
initialize()
before creating database models. If any code in an
initialization signal handler tried to access the database, and the
database was empty, syncdb would crash.We no longer call
initialize()
for this command. We fortunately don't
call it when doingrb-site install
, meaning both that there's
precedent for avoiding the call and that this problem doesn't impact
production at all.
Tested
syncdb
with and without a functioning database.Tested all other affected commands:
test
,runserver
, and a few
other management commands.