1- """
2- Django settings for testapp project.
3-
4- Generated by 'django-admin startproject' using Django 1.8.
5-
6- For more information on this file, see
7- https://docs.djangoproject.com/en/1.8/topics/settings/
8-
9- For the full list of settings and their values, see
10- https://docs.djangoproject.com/en/1.8/ref/settings/
11- """
12-
13- # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
141import os
152import tempfile
163
17- BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
18-
19-
204# Quick-start development settings - unsuitable for production
215# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
226
@@ -95,7 +79,7 @@ def GetMiddlewareClasses():
9579DATABASES = {
9680 "default" : {
9781 "ENGINE" : "django_prometheus.db.backends.sqlite3" ,
98- "NAME" : os . path . join ( BASE_DIR , "db.sqlite3" ) ,
82+ "NAME" : "db.sqlite3" ,
9983 },
10084 # Comment this to not test django_prometheus.db.backends.postgres.
10185 "postgresql" : {
@@ -118,11 +102,11 @@ def GetMiddlewareClasses():
118102 # The following databases are used by test_db.py only
119103 "test_db_1" : {
120104 "ENGINE" : "django_prometheus.db.backends.sqlite3" ,
121- "NAME" : os . path . join ( BASE_DIR , "test_db_1.sqlite3" ) ,
105+ "NAME" : "test_db_1.sqlite3" ,
122106 },
123107 "test_db_2" : {
124108 "ENGINE" : "django_prometheus.db.backends.sqlite3" ,
125- "NAME" : os . path . join ( BASE_DIR , "test_db_2.sqlite3" ) ,
109+ "NAME" : "test_db_2.sqlite3" ,
126110 },
127111}
128112
0 commit comments