Questions tagged as 'flask'

0
answers

No images in local folder

I'm doing a page with Flask, HTML, I have made some templates that I did with materialize, in some sections I have images that are in the background, for example, when I add it in the flask project, it is no longer visible. for example I have th...
asked by 11.10.2018 / 20:33
0
answers

Flask-SqlAlchemy orm

from flask import Flask, render_template, request, redirect, url_for, flash from config.config import DevelopmentConfig from Modelos.Model import Detail, Category, products, Supplier, Output, Customers, db from View import Forms csrf = CSRF...
asked by 10.10.2018 / 06:22
0
answers

Web service with Flask to access external device cameras

At this moment I have with the code that I am using, I create a web service with Flask with which I access the webcam of my laptop. Python code: from flask import Flask, render_template, Response import cv2 app = Flask(__name__) @app.rou...
asked by 02.10.2018 / 02:56
0
answers

How can I send information from one form to another FLASK route?

What I want to do is a program that uses a form to receive data to perform some functions in python code, until here everything is fine, my problem is that if I want to print the result on my web page, I have to have saved the values in cache, b...
asked by 24.09.2018 / 02:40
0
answers

can not import name routes in a Flask app

I tried to test my Flask application following this blog but I said: (venv) mike@mike-Inspiron-3543:~/Documents/programming/microblog$ flask shell Usage: flask shell [OPTIONS] Error: While importing "microblog", an ImportError was raised: Tr...
asked by 22.09.2018 / 11:14
0
answers

Problems importing JS files in flask

I am using a package called flask_material to be able to use materialize in my flask project, and it loads perfectly the css and the components that I use, however when importing my JS file it is in which I have to import the init of my componen...
asked by 23.09.2018 / 06:42
1
answer

No 'Access-Control-Allow-Origin' header is present on the requested resource (flask - python - js)

The following is the code I use to pick up the URL " link "  (RESTful API - Python and Flask) from flask import Flask, request from flask_restful import Resource, Api from sqlalchemy import create_engine from json import dump...
asked by 31.08.2018 / 20:01
0
answers

Error sending and saving image in Ionic and Flask

I am developing a project on Ionic I have a server mounted on Flask and I would like to be able to send images and treat them with this one. I am currently doing the following: uploadFile(img) { let postParams = { file: img }; this.http.se...
asked by 02.09.2018 / 15:09
0
answers

How can I return a .json file in python with flask

I have a method to read the .json I have in a folder inside the api in flask The method in question I pass a directiorio (dir) and I go through it with a for as it is a folder more folders inside and within these latest folders the .json -esta...
asked by 23.08.2018 / 17:26
0
answers

How can I make my entrypoint.sh not add any errors once I have generated the logs command in dockers?

**    I'm having problems directly with the entrypoint, it does not let me access the link . Once it looks for the entrypoint, this error occurs:   users_1 | sh: /usr/src/app/entrypoint.sh: not found   I'm working on Windows. When I run...
asked by 16.08.2018 / 01:19