heroku-postgres

How to add property to PostgreSQL database that is hosted on Heroku with Flask/Python?

How to add property to PostgreSQL database that is hosted on Heroku with Flask/Python? Question: I have a database for my website that is hosted on Heroku and uses Flask and Python. The model structure looks like: class MyDataModel(db.Model): id = db.Column(db.Integer, primary_key=True) property1 = db.Column(db.String(240), default = "") property2 = db.Column(db.String(240), default = "") …

Total answers: 2

Heroku postgres postgis – django releases fail with: relation "spatial_ref_sys" does not exist

Heroku postgres postgis – django releases fail with: relation "spatial_ref_sys" does not exist Question: Heroku changed their PostgreSQL extension schema management on 01 August 2022. (https://devcenter.heroku.com/changelog-items/2446) Since then every deployment to Heroku of our existing django 4.0 application fails during the release phase, the build succeeds. Has anyone experienced the same issue? Is there a …

Total answers: 9

django.db.utils.DataError: value too long for type character varying(30). I am getting this error while migrating on heroku postgresql

django.db.utils.DataError: value too long for type character varying(30). I am getting this error while migrating on heroku postgresql Question: The errors I am getting while migrating on PostgreSQL Heroku. Note: It is working fine on the local server. Traceback (most recent call last): File "/app/manage.py", line 22, in <module> main() File "/app/manage.py", line 18, in …

Total answers: 3

Hosting flask API

Hosting flask API Question: Please forgive me if some of my terminology is off here, I’m new to all of this. I have built a python-flask API that GETs data from my PostgreSQL database. I have tried to get my API hosted on Heroku but I think it is unsuccessful because my API is using …

Total answers: 1