Understanding A Sample Flask Web Application Skeleton

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ส.ค. 2024
  • 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 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
    Incase of any queries you can contact the below number. Happy Learning!!
    8788503778
    6260726925
    9538303385
    8660034247
    9880055539

ความคิดเห็น • 30

  • @shivsagarchavan9401
    @shivsagarchavan9401 3 ปีที่แล้ว +44

    Every Python module has it’s __name__ defined and if this is ‘__main__’, it implies that the module is being run standalone by the user and we can do corresponding appropriate actions.
    If you import this script as a module in another script, the __name__ is set to the name of the script/module.
    Python files can act as either reusable modules, or as standalone programs.
    if __name__ == “main”: is used to execute some code only if the file was run directly, and not imported.

  • @hm2715
    @hm2715 ปีที่แล้ว +8

    When you use the condition if __name__ == "__main__":, the code inside that block will only run if the current script is being directly executed as a standalone script.
    If the script is imported as a module into another script, the code inside the if __name__ == "__main__": block will not run. This allows you to have certain code that should only execute when the script is run directly, but not when it is imported as a module.

  • @singnsoul6443
    @singnsoul6443 5 หลายเดือนก่อน +2

    When you write a Python script, you might want some parts of the code to execute only when the script is run directly, not when it's imported as a module into another script.
    The line if __name__ == "__main__": allows you to achieve this behavior. Here's how it works:
    Direct Execution: When you run a Python script directly (by calling python script_name.py), the special variable __name__ is set to "__main__". This indicates that the script is being executed as the main program.
    Imported as a Module: When you import a Python script into another script or interactive session, the __name__ variable is set to the name of the module (i.e., the filename without the .py extension), not "__main__".

  • @srinidhi6049
    @srinidhi6049 3 ปีที่แล้ว +3

    Thank you krish for giving good Kickstart towards learning this framework 👌🙏

  • @maxwellpatten9227
    @maxwellpatten9227 3 ปีที่แล้ว +2

    More flask videos please!!!

  • @scortexfire
    @scortexfire ปีที่แล้ว

    Learning this on the job, in office hours, project manager told me to do so.

  • @rambaldotra2221
    @rambaldotra2221 3 ปีที่แล้ว +2

    Thank You Sir Much Needed ✨

  • @mariners_platter
    @mariners_platter 5 หลายเดือนก่อน

    flask (and python) looks very similar to Ruby and Ruby on Rails! Nice video.

  • @VR-fh4im
    @VR-fh4im ปีที่แล้ว +2

    While debugging my flask application, I got an error - Visual Studio Code Python debugging "Exception has occurred SystemExit". My work-around was to uncheck "Uncaught Exceptions" in the breakpoint menu at the bottom of the debug window, in case someone gets the same issue.

  • @mehdismaeili3743
    @mehdismaeili3743 3 หลายเดือนก่อน

    Excellent .

  • @Rajesh-nj7lw
    @Rajesh-nj7lw 3 ปีที่แล้ว +2

    If possible can you make one video to browse csv file and do some data preprocessing using python in flask application. It will be useful for me.

  • @sanketthorat5893
    @sanketthorat5893 3 ปีที่แล้ว +3

    Sir, Python Full stack ka next course kb chalu hoga and is it possible for an employed guy to take up this course, Thanks in advance

  • @debbh274
    @debbh274 10 หลายเดือนก่อน

    🎉 awesome

  • @rajkir2852
    @rajkir2852 3 ปีที่แล้ว +1

    Wow...
    Great

  • @ShubhamSingh-lx6fd
    @ShubhamSingh-lx6fd 2 ปีที่แล้ว

    That's a brilliant video.

  • @iamsavishka
    @iamsavishka 7 หลายเดือนก่อน

    Thank you very helpful video

  • @louerleseigneur4532
    @louerleseigneur4532 3 ปีที่แล้ว

    Thanks Krish

  • @pallapothubhargavramfromib2244
    @pallapothubhargavramfromib2244 3 ปีที่แล้ว +2

    if iam clicking python app.py .My PROGRAMME IS NOT RUNNING

  • @prasadbhosale9907
    @prasadbhosale9907 2 ปีที่แล้ว

    Thank you Sir 🙏

  • @buffetbar8231
    @buffetbar8231 3 ปีที่แล้ว +2

    Hiiiii.... Please provide a fresher sample resume for the data science role

  • @JacklinSibiyal
    @JacklinSibiyal 5 หลายเดือนก่อน

    Day 8 - 29/02/24

  • @madhuravi6182
    @madhuravi6182 ปีที่แล้ว

    please upload a video for creating e2e sales forecast prediction application using angular and python

  • @sujangajananachari2814
    @sujangajananachari2814 ปีที่แล้ว +1

    can anyone help me if i used debug=True code is not getting updated

  • @kin_1997
    @kin_1997 2 ปีที่แล้ว

    awesome

  • @resheabjr719
    @resheabjr719 ปีที่แล้ว +1

    its not detecting change pls help

  • @yunbow5630
    @yunbow5630 4 หลายเดือนก่อน

    where is the requirement.txt????

  • @sandunuhettiarachi5124
    @sandunuhettiarachi5124 2 ปีที่แล้ว

    can we do the same in jupyter?

  • @ShubhamSingh-lx6fd
    @ShubhamSingh-lx6fd 2 ปีที่แล้ว

    ❤️

  • @vamsiakula653
    @vamsiakula653 3 ปีที่แล้ว +1

    150th view

  • @nirmal2253
    @nirmal2253 ปีที่แล้ว

    which theme is this