File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 13
13
from pathlib import Path
14
14
15
15
# Build paths inside the project like this: BASE_DIR / 'subdir'.
16
+ import dj_database_url
17
+
16
18
BASE_DIR = Path (__file__ ).resolve ().parent .parent
17
19
18
20
SECRET_KEY = 'Not_the_actual_key'
64
66
65
67
WSGI_APPLICATION = 'mergify.wsgi.application'
66
68
67
- DATABASES = {
68
- 'default' : {
69
- 'ENGINE' : 'django.db.backends.sqlite3' ,
70
- 'NAME' : BASE_DIR / 'db.sqlite3'
71
- }
72
- }
69
+ DATABASES = {"default" : dj_database_url .config (conn_max_age = 600 )}
73
70
74
71
# Password validation
75
72
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ requests==2.28.1
7
7
dynaconf ~= 3.1.9
8
8
django-q ~= 1.3.9
9
9
mysqlclient ~= 2.1.1
10
- gunicorn ~= 20.1.0
10
+ gunicorn ~= 20.1.0
11
+ django-database-url ~= 1.0.3
Original file line number Diff line number Diff line change 11
11
bulk : 10
12
12
orm : default
13
13
catch_up : False
14
+ DATABASES :
15
+ ' default ' :
16
+ NAME : db.sqlite3
17
+ ENGINE : django.db.backends.sqlite3
14
18
production :
15
19
ALLOWED_HOSTS :
16
20
- ' mergify.net'
You can’t perform that action at this time.
0 commit comments