IntegrityError when trying to add a new user in Flask with SQLAlchemy
I’m working on a Flask application where I have a form to allow users to input their username and password. Once submitted, the user’s information should be displayed on another webpage along with all previously entered users.
IntegrityError sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: store_items.name
I removed the unique constraint from the table class but I’m gettting unique constraint failed when I try to add data to the table of same name present in the table.
IntegrityError sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: store_items.name
I removed the unique constraint from the table class but I’m gettting unique constraint failed when I try to add data to the table of same name present in the table.
Flask-SQLAlchemy’s db.session.commit() error
As a beginner, code like:
Flask-SQLAlchemy’s db.session.commit() error
As a beginner, code like:
Flask-SQLAlchemy’s db.session.commit() error
As a beginner, code like:
Flask-SQLAlchemy’s db.session.commit() error
As a beginner, code like:
Flask-SQLAlchemy between filter not working?
In my current code with this class:
Database isn’t being created, flask, python, SQLAlchemy
I am following this tutorial: https://www.youtube.com/watch?v=dam0GPOAvVI
I am creating a database in my init.py file when creating my flask app yet it isn’t being created in the directory
What’s a lightweight queue implementation that I can use for simple tasks? Celery seems like overkill
I have a Flask application with a kafka consumer receiving messages. I want to put these messages into a queue and have a background thread move them into a sqlite database depending on minor logic. Looking into Celery it seems like I’ll need Redis as a broker and set up all that in my application. I just feel like this is a lot. I just need the kafka task to push the message to a list, then have a different thread/gevent/multiprocess(?) read it and stick in the database