File tree Expand file tree Collapse file tree 5 files changed +24
-18
lines changed
chris_backend/config/settings Expand file tree Collapse file tree 5 files changed +24
-18
lines changed Original file line number Diff line number Diff line change 119
119
DATABASES = {
120
120
'default' : {
121
121
'ENGINE' : 'django.db.backends.postgresql' ,
122
- 'OPTIONS' : {
123
- 'pool' : True # use defaults
124
- }
125
122
}
126
123
}
127
124
Original file line number Diff line number Diff line change 124
124
DATABASES ['default' ]['TEST' ] = {'NAME' : 'test_chris_dev' }
125
125
DATABASES ['default' ]['HOST' ] = 'chris_dev_db'
126
126
DATABASES ['default' ]['PORT' ] = '5432'
127
+ DATABASES ['default' ]['OPTIONS' ] = {'pool' : {'min_size' : 1 , 'max_size' : 2 , 'timeout' : 10 }}
127
128
128
129
# Mail settings
129
130
# ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ def get_secret(setting, secret_type=env):
54
54
DATABASES ['default' ]['PASSWORD' ] = get_secret ('POSTGRES_PASSWORD' )
55
55
DATABASES ['default' ]['HOST' ] = get_secret ('DATABASE_HOST' )
56
56
DATABASES ['default' ]['PORT' ] = get_secret ('DATABASE_PORT' )
57
+ DATABASE_CONN_POOL = get_secret ('DATABASE_CONN_POOL' , env .bool )
58
+ if DATABASE_CONN_POOL :
59
+ DATABASE_CONN_POOL_MIN_SIZE = get_secret ('DATABASE_CONN_POOL_MIN_SIZE' , env .int )
60
+ DATABASE_CONN_POOL_MAX_SIZE = get_secret ('DATABASE_CONN_POOL_MAX_SIZE' , env .int )
61
+ DATABASE_CONN_POOL_TIMEOUT = get_secret ('DATABASE_CONN_POOL_TIMEOUT' , env .float )
62
+ DATABASES ['default' ]['OPTIONS' ] = {'pool' : {'min_size' : DATABASE_CONN_POOL_MIN_SIZE ,
63
+ 'max_size' : DATABASE_CONN_POOL_MAX_SIZE ,
64
+ 'timeout' : DATABASE_CONN_POOL_TIMEOUT }}
57
65
58
66
59
67
# STORAGE CONFIGURATION
Original file line number Diff line number Diff line change 1
- Django==5.1.7
1
+ Django==5.2.1
2
2
django-filter==25.1
3
- djangorestframework==3.15.2
3
+ djangorestframework==3.16.0
4
4
django-cors-headers==4.7.0
5
5
psycopg[binary,pool]
6
6
environs==14.1.1
7
7
python-swiftclient==4.7.0
8
8
django-storage-swift==1.4.0
9
- celery==5.4.0
10
- django-celery-beat==2.7.0
9
+ celery==5.5.2
10
+ django-celery-beat==2.8.1
11
11
python-chrisstoreclient==1.0.0
12
12
python-pfconclient==3.2.0
13
- django-auth-ldap==5.1 .0
13
+ django-auth-ldap==5.2 .0
14
14
PyYAML==6.0.2
15
- whitenoise[brotli]==6.5 .0
15
+ whitenoise[brotli]==6.9 .0
16
16
PyJWT===2.10.1
17
- channels==4.2.0
18
- nats-py==2.9 .0
19
- granian==1.6.1
17
+ channels==4.2.2
18
+ nats-py==2.10 .0
19
+ granian==2.2.6
20
20
git+https://github.com/tfranzel/drf-spectacular.git@refs/pull/1307/head
Original file line number Diff line number Diff line change 1
1
# Local development dependencies go here
2
2
-r base.txt
3
- django-debug-toolbar==5.0.1
4
- django-extensions==3.2.3
3
+ django-debug-toolbar==5.2.0
4
+ django-extensions==4.1
5
5
collection-json==0.1.1
6
- coverage==7.6.12
7
- pylint==3.3.4
8
- flake8==7.1.2
6
+ coverage==7.8.0
7
+ pylint==3.3.7
8
+ flake8==7.2.0
9
9
isort==6.0.1
10
- pudb==2024.1.3
10
+ pudb==2025.1
11
11
daphne==4.1.2 # required by (django) channels.testing
12
12
granian[reload]
13
13
https://github.com/msbrogli/rpudb/archive/master.zip
You can’t perform that action at this time.
0 commit comments