All Questions
Tagged with flask postgresql
902
questions
-4
votes
0
answers
31
views
RuntimeError with python script [closed]
I'm running into a runtime error. I'm working on a backend development and im trying to connect postgres and with my webiste but I keep running into migrate errors.
Ive tried to delete the migrate ...
0
votes
0
answers
27
views
PostgreSQL authentication fails on Ubuntu server until postgresql service is restarted
I am running a Flask app with SQLAlchemy, on Ubuntu server with PostgreSQL and Apache2.
SQLAlchemy gave an authentication failed for postgres error. After stopping Apache2, restarting Postgres and ...
-2
votes
0
answers
27
views
installing psycopg2 for SQLAlchemy , postgress running in docker connection [duplicate]
It appears you are missing some prerequisite to build the package from source.
You may install a binary package by installing 'psycopg2-binary' from PyPI.
If you want to install psycopg2 from source, ...
0
votes
1
answer
49
views
Flask Postgres Kubernetes No such file
I have a Flask + Postgres application, containerized with docker-compose.
services:
database:
image: postgres:latest
container_name: hse-database
volumes:
- postgres_data:/var/lib/...
0
votes
1
answer
55
views
Using Postgres/Flask, how might I query for the next occurrence of a scheduled task when days/hours/minutes are stored as ints in their own columns?
Essentially I'm building a flask app(deployed via heroku) and using Postgres to store schedule settings set by the user. This is done through forms on the web app itself and stored in it's own table. ...
0
votes
0
answers
17
views
flask db init command executing without end
I had ran the command initially at the start of my project. I accidentally ran it again at the end when I was trying to get the whole project to run.
I tried to remove the migration directory and ...
0
votes
1
answer
35
views
Can't get the chart.js graph on my web app to populate when pulling data from my database and I know it's related to the format of the date returned
For background, I am working on my first web app using heroku + flask/python. It's a personal project to track soil humidity in various potted plants around my house using an esp32 and sensors that ...
1
vote
1
answer
141
views
UnicodeDecodeError When Connecting to PostgreSQL Using psycopg2 in Python
I am encountering an issue when trying to connect to PostgreSQL using the psycopg2 library in Python. I get the following error:
Traceback (most recent call last):
File "c:\Users\ferre\Projects\...
0
votes
0
answers
21
views
i can't visualize my data from my database in my map
i want to get my data from my database postgresql (cloud) so using a function "get_data" to import my data from my database into my map (web application). the problem is i have to determine ...
0
votes
0
answers
38
views
sqlalchemy.exc.CompileError: PostgreSQL ENUM type requires a name
I have tried multiple solutions but nothing seems to be working. I have this code
from models.business import db
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.dialects.postgresql ...
0
votes
0
answers
58
views
Issues with saving token in the database and using private key to sign JWT tokens in Flask
I'm encountering some issues with implementing authentication in a Flask application. I need help understanding why my token isn't being saved in the database and why my private key isn't working ...
1
vote
1
answer
53
views
Flask with Postgres - Database is Crashing after few APIs call
I have created the flask app with nginx running in a docker container and
postgresql database in different container
I created like 10 pages, in each page max 3 or 4 are calling, and the response are ...
0
votes
2
answers
33
views
RDS Connection Times Out on EC2 Instance
(This is my first time here so I'm sorry if this post is not perfect.)
I have developed a Flask application which I have later deployed on an AWS EC2 instance. The app connects to RDS database (...
0
votes
0
answers
33
views
How to use Sqlalchemy python query result as an object like in NodeJS?
i want to ask how we use the result of a sqlalchemy orm query for function that located in another file like i used it in NodeJS. I never use python before so it would be great if anybody can help me ...
0
votes
0
answers
54
views
Create tables and apply migration on Flask app startup
I am working on a flask app and I want to be sure that when my service runs it will have created the database it need based on its SQLAlchemy models if it doesnt exists and apply all migration if ...