From 28b78399df5519c6226049cf028edf3f45ccb925 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 16 Jan 2014 18:04:26 +0100 Subject: [PATCH] Fixed Sqlite path to have three slashes by default as mentioned in the dj-database-url documentation. Fixes #48. --- project_name/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_name/settings.py b/project_name/settings.py index ccb8276..c9563e8 100644 --- a/project_name/settings.py +++ b/project_name/settings.py @@ -60,7 +60,7 @@ class Common(Configuration): # https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases # http://django-configurations.readthedocs.org/en/latest/values/#configurations.values.DatabaseURLValue - DATABASES = values.DatabaseURLValue('sqlite://%s' % os.path.join(BASE_DIR, 'db.sqlite3'), + DATABASES = values.DatabaseURLValue('sqlite:///%s' % os.path.join(BASE_DIR, 'db.sqlite3'), environ=True) # Internationalization