From 93e3b48d2da37d6ec6da54846cbb8a90ad26caaf Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 12 Mar 2015 23:06:52 +0100 Subject: [PATCH] fix DB path --- examples/sandbox/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/sandbox/settings.py b/examples/sandbox/settings.py index 9ce029c4..16cf0dff 100644 --- a/examples/sandbox/settings.py +++ b/examples/sandbox/settings.py @@ -23,7 +23,7 @@ PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'sandbox.sql', # Or path to database file if using sqlite3. + 'NAME': os.path.join(PROJECT_ROOT, 'sandbox.sql'), # Or path to database file if using sqlite3. 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. -- 2.39.5