]> git.parisson.com Git - telemeta.git/commitdiff
fix DB path
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 12 Mar 2015 22:06:52 +0000 (23:06 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 12 Mar 2015 22:06:52 +0000 (23:06 +0100)
examples/sandbox/settings.py

index 9ce029c46f412d82f1f0d41791de50eaaf833fae..16cf0dff2de97347807e6c619be835b4fe38c3b3 100644 (file)
@@ -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.