Hello, I’m trying to use the built-in Neon Postgres table in python however it’s throwing weird errors.
I’m using this tutorial: https://docs.replit.com/hosting/databases/postgresql-on-replit#usage-python
-
When I use “process.env.DATABASE_URL” it doesn’t work saying that there is no module called process. When I import process, it says there’s no environment variable DATABASE_URL. To get around this I just pasted the url that the postgres area gives me and it seems to connect.
-
When I try to add a new table it gives me the error: “psycopg2.errors.DuplicateTable: relation “brokerdata” already exists”. Even though I’ve just created the database and there are no tables in it.
-
When I try to write, it gives duplicate error for some rows but no error for others. However no rows actually show up in the database.
help!!!