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, ...)
14
1
import os
15
2
import tempfile
16
3
17
- BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
18
-
19
-
20
4
# Quick-start development settings - unsuitable for production
21
5
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
22
6
@@ -95,7 +79,7 @@ def GetMiddlewareClasses():
95
79
DATABASES = {
96
80
"default" : {
97
81
"ENGINE" : "django_prometheus.db.backends.sqlite3" ,
98
- "NAME" : os . path . join ( BASE_DIR , "db.sqlite3" ) ,
82
+ "NAME" : "db.sqlite3" ,
99
83
},
100
84
# Comment this to not test django_prometheus.db.backends.postgres.
101
85
"postgresql" : {
@@ -118,11 +102,11 @@ def GetMiddlewareClasses():
118
102
# The following databases are used by test_db.py only
119
103
"test_db_1" : {
120
104
"ENGINE" : "django_prometheus.db.backends.sqlite3" ,
121
- "NAME" : os . path . join ( BASE_DIR , "test_db_1.sqlite3" ) ,
105
+ "NAME" : "test_db_1.sqlite3" ,
122
106
},
123
107
"test_db_2" : {
124
108
"ENGINE" : "django_prometheus.db.backends.sqlite3" ,
125
- "NAME" : os . path . join ( BASE_DIR , "test_db_2.sqlite3" ) ,
109
+ "NAME" : "test_db_2.sqlite3" ,
126
110
},
127
111
}
128
112
0 commit comments