Don't initialize Review Board when creating database models.

Review Request #10069 — Created July 5, 2018 and submitted

chipx86
Review Board
release-3.0.x
4619efc...
reviewboard

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 doing rb-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.

brennie
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (7a6a81e)
Loading...