heroku-postgres

OperationalError: cursor “_django_curs_<id>” does not exist

回眸只為那壹抹淺笑 提交于 2020-07-05 07:34:44
问题 We have an online store web-app which is powered by django, postgresql and heroku. For a specific campaign (you can think a campaign like a product to purchase), we have sold 10k+ copies successfully. Yet some of our users are encountered this error according to our Sentry reports. Common specification of these users is; none of them have address information before the purchase. Generally, users fill out address form right after registering. If they don't, they need to fill the form while

OperationalError: cursor “_django_curs_<id>” does not exist

你离开我真会死。 提交于 2020-07-05 07:32:28
问题 We have an online store web-app which is powered by django, postgresql and heroku. For a specific campaign (you can think a campaign like a product to purchase), we have sold 10k+ copies successfully. Yet some of our users are encountered this error according to our Sentry reports. Common specification of these users is; none of them have address information before the purchase. Generally, users fill out address form right after registering. If they don't, they need to fill the form while

Running PostGIS with Django on Heroku

谁都会走 提交于 2020-06-27 15:11:49
问题 Trying to run a GeoDjango app on Heroku and it's being a really piece of work. After struggling through a variety of problems, I've come to one I can't seem to hack my way out of. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 673, in db_parameters type_string = self.db_type(connection) File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/gis/db/models/fields.py", line 105, in db_type return connection.ops.geo_db_type(self)

Running PostGIS with Django on Heroku

末鹿安然 提交于 2020-06-27 15:11:29
问题 Trying to run a GeoDjango app on Heroku and it's being a really piece of work. After struggling through a variety of problems, I've come to one I can't seem to hack my way out of. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 673, in db_parameters type_string = self.db_type(connection) File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/gis/db/models/fields.py", line 105, in db_type return connection.ops.geo_db_type(self)

What's the significance when a Heroku database URL is called 'HEROKU_POSTGRESQL_WHITE_URL'?

假如想象 提交于 2020-06-11 22:58:46
问题 What's the "significance" - if any - when a database URL is called HEROKU_POSTGRESQL_WHITE_URL? I've seen other names in Heroku's documentation such as 'HEROKU_POSTGRESQL_PURPLE_URL', HEROKU_POSTGRESQL_CHARCOAL_URL,... Does it mean it's always your primary database, or first database to be provision? I would love to know. $ heroku pg:info === HEROKU_POSTGRESQL_WHITE_URL (DATABASE_URL) Plan: Standard 0 Status: Available Data Size: 491.9 MB Tables: 22 PG Version: 9.3.5 .... 回答1: Colors are

Upgrade hobby-dev to hobby-basic on Heroku

浪尽此生 提交于 2020-06-09 08:26:18
问题 I'm still getting my head wrapped around Heroku's plans. But I know I'm going to have around 3M rows in the db so I need to upgrade from hobby-dev to hobby-basic. However, I can't find any documentation or help about this level of upgrade. Only docs to go from Hobby to Standard. Do I need to create a new PG Add-On and then wipe out my hobby-dev db? 回答1: This answer assumes that you're using Heroku CLI. Any instance of "YOUR_APP_NAME" in a command should be replaced by the application name of

Cant pg_restore on Heroku: “could not read from input file: end of file”

旧时模样 提交于 2020-01-23 06:28:09
问题 I am trying to copy my local PostgreSQL DB to Heroku app with pg_dump / pg_restore utils. Doing according to Heroku's official guide: https://devcenter.heroku.com/articles/heroku-postgres-import-export So, i've done the dump: pg_dump -Fc --no-acl --no-owner -h localhost -U myuser mydb > mydb.dump Then i've uploaded it on a reachable across the web server (and its really reachable, i've checked it downloading the file with wget and pg_restore ing it - works fine). Then i've tried to restore in

phpPgAdmin for Heroku database

安稳与你 提交于 2020-01-15 04:14:51
问题 When I create an app in Heroku and add a database (PostgreSQL) to it, is there a way to add a web interface for that database (such as phpPgAdmin)? 回答1: I'm no expert, but I think you can't have this functionality. Have a look at the monitoring section; in case you want to get some logs. Furthermore it's worth checking Heroku Postgres add-on section. There you can find details about different plans e.g. they include different features. However, there is a way to connect to Postgres database