default (sqlite) database location incorrect when using

Review Request #1183 — Created Oct. 26, 2009 and discarded — Latest diff uploaded


Review Board

Reviewers suggests a sequence of steps that result in the sqlite database being created in the "wrong" directory. If:

$ cd reviewboard
$ python ./contrib/internal/

Is issued the database ends up in the reviewboard directory (i.e. reviewboard/reviewboard/reviewboard.db of the git working area).

When the next step in is ran, reviewboard starts but complains about a missing database (schema) and suggests that, " syncdb" be ran.

This change updates the template settings file to perform some directory checks I'm not sure if this is good form but it is one of the easiest ways of correcting the problem problematically without needing to update the settings file after it is created.

I added an if sqlite check to make clear the path was needed (only for sqlite).