Skip to content

Commit f19d613

Browse files
jwisehellcp
authored andcommitted
modernize sqlalchemy to support new postgres
1 parent beac48f commit f19d613

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

appstore/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
config = {
77
'DOMAIN_ROOT': domain_root,
8-
'SQLALCHEMY_DATABASE_URI': os.environ['DATABASE_URL'],
8+
'SQLALCHEMY_DATABASE_URI': os.environ['DATABASE_URL'].replace("postgres://","postgresql://"),
99
'PBW_ROOT': os.environ.get('PBW_ROOT', f'http://pbws.{domain_root}/pbw'),
1010
'IMAGE_ROOT': os.environ.get('IMAGE_ROOT', f'https://assets.rebble.io'),
1111
'APPSTORE_ROOT': os.environ.get('APPSTORE_ROOT', f'http://apps.{domain_root}'),

requirements.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ python-dateutil==2.7.3
1717
python-editor==1.0.3
1818
requests==2.27.1
1919
six==1.15.0
20-
SQLAlchemy==1.2.8
20+
SQLAlchemy==1.4.54
2121
urllib3==1.23
2222
Werkzeug==0.16.1
2323
boto3==1.9.169
2424
PyYAML==5.1.2
2525
Pillow==8.4
26+
pydiscourse==1.1.2
2627

2728
# for serving
2829
gunicorn==20.1.0
@@ -44,4 +45,8 @@ s3transfer==0.2.1
4445
statsd==3.3.0
4546
uritemplate==4.1.1
4647
Werkzeug==0.16.1
47-
wrapt==1.14.1
48+
wrapt==1.14.1
49+
importlib-metadata==4.8.3
50+
greenlet==2.0.2
51+
typing-extensions==4.1.1
52+
zipp==3.6.0

0 commit comments

Comments
 (0)