From: Guillaume Pellerin Date: Thu, 12 Mar 2015 22:06:52 +0000 (+0100) Subject: fix DB path X-Git-Tag: 1.6a^2~56 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=93e3b48d2da37d6ec6da54846cbb8a90ad26caaf;p=telemeta.git fix DB path --- 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.