Fixed settings_local.py database path not being absolute.
Review Request #7684 — Created Oct. 9, 2015 and submitted
When running rb-vm-env on Vagrant, would get relative database path in settings_local.py, which would cause some errors. Such as:
"Testing a SFTP-backed bzr repository ... ERROR:root:Could not load siteconfig: no such table: django_site"Added an import and a path variable to settings_local.py.tmpl
Edited a string that prepare-dev.py wrote into the template.
Performed Review Board unit tests
$cd /src/reviewboard
$./reviewboard/manage.py testRan prepare-dev.py to check if it would create settings_local.py correctly.
Description | From | Last Updated |
---|---|---|
Setting SITE_ROOT isn't correct (SITE_ROOT is when you want Review Board to appear in a subdirectory of a webserver, for … |
david | |
We should use __file__ here, rather than SITE_ROOT. |
david | |
Please add one more blank line in here (there should be two blank lines between the imports and the first … |
david |
- Summary:
-
Fixing Ticket 3989Fixed settings_local.py database path not being absolute.
- Description:
-
~ Fixing Ticket 3989
~ When running rb-vm-env on Vagrant, would get relative database path in settings_local.py, which would cause some errors. Such as:
+ "Testing a SFTP-backed bzr repository ... ERROR:root:Could not load siteconfig: no such table: django_site" + + Added an import and a path variable to settings_local.py.tmpl
+ Edited a string that prepare-dev.py wrote into the template. - Testing Done:
-
+ Performed Review Board unit tests
+ + $cd /src/reviewboard
+ $./reviewboard/manage.py test + + Ran prepare-dev.py to check if it would create settings_local.py correctly.
- Bugs:
-
You've ended up adding a bunch of extra junk to git (
.DS_Store
,<fdopen>
, etc.). Please remove these from your change. -
Setting
SITE_ROOT
isn't correct (SITE_ROOT is when you want Review Board to appear in a subdirectory of a webserver, for example, it would be set to "/reviewboard/" if you wanted to access your installation at http://repos.company.com/reviewboard/) -
- Change Summary:
-
Changed the PATH and removed random git files
- Commit:
-
50295ff666b3a2811ed3ac77ace3c0314db982176cc2f9b0f4460434ec8c1f7466a7ec42ae2c5308
-
Tool: Pyflakes Processed Files: contrib/internal/prepare-dev.py Ignored Files: contrib/conf/settings_local.py.tmpl Tool: PEP8 Style Checker Processed Files: contrib/internal/prepare-dev.py Ignored Files: contrib/conf/settings_local.py.tmpl
- Change Summary:
-
Added newline
- Commit:
-
6cc2f9b0f4460434ec8c1f7466a7ec42ae2c5308037259ad80861882f7a87a912819b999dd941a30