flask-gentelella | Gentelella template powered by Flask | Continuous Deployment library
kandi X-RAY | flask-gentelella Summary
kandi X-RAY | flask-gentelella Summary
Gentelella is a free to use Bootstrap admin template.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flask-gentelella
flask-gentelella Key Features
flask-gentelella Examples and Code Snippets
Community Discussions
Trending Discussions on flask-gentelella
QUESTION
I have a file upload form in HTML, which should be used to upload and save to a static folder. The problem is that it works fine in a simple Flask app, but it just doesn't work using Blueprint templates.
I have tried several different ways of making this work. When I use "url_for", the page doesn't even load (werkzeug.routing.BuildError: Could not build url for endpoint 'upload'. Did you mean 'forms_blueprint.upload' instead?).
But when I change "url_for" to "form_upload.html", the result is always that the method is not allowed.
All thoughts are appreciated.
routes.py: ...ANSWER
Answered 2019-Feb-12 at 12:39When I use "url_for", the page doesn't even load (werkzeug.routing.BuildError: Could not build url for endpoint 'upload'. Did you mean 'forms_blueprint.upload' instead?).
This means exactly what it says. when you build the URL you need to do it as follows:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flask-gentelella
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page