Questions tagged as 'flask'

0
answers

How are records updated with SqlAlchemy?

I am developing an application in Python with Flask and SqlAlchemy, for this the basic operations that are carried out are to create a record, modify it and delete it. To create the record with the following code fragment ... try: pp =...
asked by 29.12.2017 / 14:06
1
answer

How can I add a value to a database from sqlalchemy python?

Good afternoon friends of stackoverflow I have a question. My doubt is that I want to enter a value to a field already registered in a database by means of sqlalchemy python using flask as a microframework here is my code example. @app.rout...
asked by 27.11.2017 / 20:10
2
answers

error flask: no moduled named 'markupsafe._compat'

this is the complete error: (flask_env) C:\Users\pcort\Documents\tuMicrofono.com>index.py Traceback (most recent call last): File "C:\Users\pcort\Documents\tuMicrofono.com\index.py", line 1, in <module> from flask import Flask...
asked by 07.11.2017 / 17:15
1
answer

I do not load styles when starting a server in flask

I do not load the css styles of my page when I start it with flask, but I open the file on my own if I upload them. This is my flask code: from flask import Flask from flask import render_template app = Flask(__name__) @app.route('/') def...
asked by 07.11.2017 / 21:38
1
answer

Error when running flask

My mistake: (flask_env) C:\Users\pcort\Documents\tuMicrofono.com>index.py Traceback (most recent call last): File "C:\Users\pcort\Documents\tuMicrofono.com\index.py", line 1, in <module> from flask import Flask File "C:\Users\...
asked by 07.11.2017 / 18:39
1
answer

full calendar event description description

Today I am working with Full calendar, I made a small modal window so that when I clicked on an event, it showed me its different data, here is my JavaScript code for the calendar: $(document).ready(function () { $('#calendar').fu...
asked by 09.11.2017 / 17:34
0
answers

Module not found Error: forms wtforms

I'm learning Flask, making a form with wtforms , but by doing: import forms in my views.py file, where are the routes, I get it:    "ModuleNotFoundError: no module named 'forms'", and the forms.py file are in the same directory as...
asked by 08.10.2017 / 22:36
0
answers

How to create a WebSocket connection in Flask without port

I am completely new to Flask and Nginx, apart from this I am trying to use WebSocket and I need to do data transmission through a web page, but without having to specify the port, nor be running it in a virtual environment. I have an Ubuntu s...
asked by 12.05.2017 / 06:41