Integrating HTML With FLASK Web Framework With HTTP VERBS(Get And POST)
HTML-код
- Опубликовано: 8 фев 2025
- github.com/kri...
Flask is a web application framework written in Python. It is developed by Armin Ronacher, who leads an international group of Python enthusiasts named Pocco. Flask is based on the Werkzeug WSGI toolkit and Jinja2 template engine. Both are Pocco projects.
We at iNeuron are happy to announce multiple series of courses. Finally we are covering Big Data,
Cloud,AWS,AIops,Business Analytics and MLops. Check out the syllabus below.
30 Days Data Science Interview preparation - rb.gy/q1c58g
Big Data Master-rb.gy/xg1ob7
Business analytics-rb.gy/herdd8
Aws Cloud Masters- rb.gy/x5poyj
AI OPS- rb.gy/kionj6
Please note the duration of the batch will be upto 4-5 months. All the sessions will be live and the recording will be available.
To find more info regarding the course please go through the courses.
You can fill the below form to reserve your seats
ineuron1.viewp...
Incase of any queries you can contact the below number. Happy Learning!!
8788503778
6260726925
9538303385
8660034247
9880055539
We at iNeuron are happy to announce multiple series of courses. Finally we are covering Big Data,
Cloud,AWS,AIops,Business Analytics and MLops. Check out the syllabus below.
30 Days Data Science Interview preparation - rb.gy/q1c58g
Big Data Master-rb.gy/xg1ob7
Business analytics-rb.gy/herdd8
Aws Cloud Masters- rb.gy/x5poyj
AI OPS- rb.gy/kionj6
Please note the duration of the batch will be upto 4-5 months. All the sessions will be live and the recording will be available.
To find more info regarding the course please go through the courses.
You can fill the below form to reserve your seats
ineuron1.viewpage.co/30daysinterviewDS
Incase of any queries you can contact the below number. Happy Learning!!
8788503778
6260726925
9538303385
8660034247
9880055539
computer vision tutorial
The best, clearest and easiest tutorial you will ever find !
Its nice to watch your videos. There are at times when you make small mistakes and try to fix it. In a way these are the exact issues a newbie would encounter so its like your helping with the troubleshoot too. :)
I just have to comment, YOU ARE AWESOME! Thank you for your videos!
You are my savior buddy. Thanks a lot for all these codes and explanations. I have a whole lot of templates generated out of it which is going to be very helpful as I am getting started in my transitioning to my new job in Data Science.
Thankyou sir for this playlist
for people facing error with the request thing import request along with flask!!
happy coding
Thanks a lot brother you saved my mental health
great content, enjoyed learning!!
Many thanks to you Krish. Its very helpful tutorial.
Thank you so much👌
Thank you very much
spent my time on quality content.
Nyc Tutorial. Easy to understand
@krish Naik, Can you please explain where did you get score from this statement return redirect(url_for(res,score=total_score))
request.method=='post' not working somehow, it's automatically redirecting to 'fail' url for all the values of total score....(working on same set up, like vs code and conda environment)
did you get any solution? im also getting the same output
i am also facing same issue
just change 'post' to capital request.method=='POST'
hope it fixes the issue
If you are not getting redirected to failure or success page.. just in form action attribute do : action="{{ url_for('submit' }}" . Hope it solves the issue
did you resolve this issue?
even for me its redirecting to FAIL url.
Thanks Krish
it was perfect
where did u get the HTML code from? do mention it in the details.
Bsc.statistics or B's.maths is better degree to become data scientist?
thank you krish for these kind of videos. Have query : not able to install crypt as it is showing :(
ERROR: Could not find a version that satisfies the requirement crypt (from versions: none)
ERROR: No matching distribution found for crypt
and without this crypt cannot import methods for further program
please help me KRISH.🙏🙏🙏🙏🙏
I am using Windows 10, python 3.7 virtual environment.
thank you
@krish bhai, 2 sal pahle kitna cute lagte the!
I'm having problems generating response from openai for my html through flask server. Can you please help me out
How to access outside templates folder files...
What if I use 2 forms in my index.html
how do I distinguish between then when reading the data using request?
thanks for help me solve flask url problem
i dont understand why we are doing render in main.py why not in app.py ? can ANYBODY plz explain
Day 10 - 03/03/24
Have you started studying flask mean please tell me where you easily understanding and completed. I need to learn urgently.
Sir you should use the Emmet in vscode
url_for is not defined.
I M getting this error can someone tell me why = ImportError("The crypt module is not supported on Windows"
great sir we can solve my error through your video that file thait web page can not found (my final year project issue resolve
)
Nice tutorial Sir
I am getting method not allowed error.. Can u please help
how to solve this?
how to popup it the result.html
Sir please update your django playlist please
im getting error (400: bad request)
Finally DS are now realising that ML models aren't everything, and web dev is still the king😂.
No offence to anyone, just a joke.😉
This playlist I am teaching so that anyone can integrate their model with web :) and yes full stack developer are the king..
kuch bhi samjh nhi ayA
I have this problem:
BadRequestKeyError
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
KeyError: 'science'
Traceback (most recent call last)
This is the Copy/Paste friendly version of the traceback.
Traceback (most recent call last):
File "c:\Users\Admin\OneDrive\Documents\Flask_project\venv\lib\site-packages\flask\app.py", line 2551, in __call__
return self.wsgi_app(environ, start_response)
File "c:\Users\Admin\OneDrive\Documents\Flask_project\venv\lib\site-packages\flask\app.py", line 2531, in wsgi_app
response = self.handle_exception(e)
File "c:\Users\Admin\OneDrive\Documents\Flask_project\venv\lib\site-packages\flask\app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "c:\Users\Admin\OneDrive\Documents\Flask_project\venv\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\Users\Admin\OneDrive\Documents\Flask_project\venv\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "c:\Users\Admin\OneDrive\Documents\Flask_project\venv\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "c:\Users\Admin\OneDrive\Documents\Flask_project\main.py", line 47, in submit
science = float(request.form["science"])
File "c:\Users\Admin\OneDrive\Documents\Flask_project\venv\lib\site-packages\werkzeug\datastructures.py", line 375, in __getitem__
raise exceptions.BadRequestKeyError(key)
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
KeyError: 'science'
How can I correct this