Configurable BASE_URL (#228)

Re #152 ability to over-ride env var BASE_URL, with UI+tests
This commit is contained in:
dgtlmoon
2021-10-05 18:15:36 +02:00
committed by GitHub
parent 2c71f577e0
commit 95e39aa727
10 changed files with 57 additions and 29 deletions

View File

@@ -36,11 +36,8 @@ def app(request):
except FileExistsError:
pass
# Enable a BASE_URL for notifications to work (so we can look for diff/ etc URLs)
os.environ["BASE_URL"] = "http://mysite.com/"
cleanup(datastore_path)
app_config = {'datastore_path': datastore_path}
cleanup(app_config['datastore_path'])
datastore = store.ChangeDetectionStore(datastore_path=app_config['datastore_path'], include_default_watches=False)