Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi, I’m building a website using Python. I’ve linked the Python server to the dev PostgreSQL provided by the app Platform on digital ocean. Everything is working fine, but when I add new records to the dev db I have to redeploy the app to see the new records appearing on the home page. I want the new records to be available without the need for redeploying the app.
This is how my python script looks like:
import psycopg
from urllib.parse import parse_qs
# Create a connection to the SQLite database
def add_post(post_data):
parsed_data = parse_qs(post_data)
con = psycopg.connect("MY CONNECTION STRINGS")
cur = con.cursor()
name = parsed_data.get('name', [''])[0]
date = parsed_data.get('date', [''])[0]
place = parsed_data.get('place', [''])[0]
link = parsed_data.get('link', [''])[0]
category = parsed_data.get('category', [''])[0]
description = parsed_data.get('description', [''][0])
cur.execute("insert into events (poster, category, date, place, media, description)VALUES (%s, %s, %s, %s, %s, %s)", (name, category, date, place, link, description[0]))
con.commit()
con.close()
a6309a057c3f4cb38fb2e7feb67236
KFSys
ef1ed44cc2154be3bcbb2d727878f8
Devs Neonetworks
1e6b823ea20d4cb189a34a922f5588
Telmo Valverde
erik-jan martens
Henry Mui
anthonycarreon
garantieheld
Marin