Replace SITE_ROOT with DEPLOY_ROOT

Whereas `SITE_ROOT` referred to the directory where settings.py is
located, *all* actual uses of `SITE_ROOT` were joining it with `..` to
get the root of the git checkout, a much more useful value.

`DEPLOY_ROOT` now represents the root of the git checkout.

(imported from commit 351437f9a5801e5c7c08a3a97619e863144e5cc8)
This commit is contained in:
Scott Feeney
2013-06-24 14:56:44 -04:00
parent fcb39a262c
commit 6b8bc74b4e
4 changed files with 7 additions and 7 deletions

View File

@@ -1901,7 +1901,7 @@ def json_get_active_statuses(request, user_profile):
js_source_map = None
if not (settings.DEBUG or settings.TEST_SUITE):
js_source_map = SourceMap(path.join(
settings.SITE_ROOT, '../prod-static/source-map/app.js.map'))
settings.DEPLOY_ROOT, 'prod-static/source-map/app.js.map'))
@authenticated_json_post_view
@has_request_variables