Python Flask Tutorial: How to Use a Custom Domain Name for Our Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

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

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

    Hey Mr. Corey, I just wanted to tell you. You have been instrumental in my career. I would not be where I am now without you. I hope you keep doing this. You are a great teacher. Keep up the wonderful work. You are making a difference.

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

    This series has been so rich and in-depth on the ins and outs of getting a web app going with flask, thank you so much for teaching stuff like this.

  • @himanshupoddar1395
    @himanshupoddar1395 5 ปีที่แล้ว +71

    You wasted 10$ just for us, to teach us. You are a legend. Take a bow!!

  • @tubalix
    @tubalix 4 ปีที่แล้ว +16

    I keep on watching more and more videos on python, also on Udemy. Then I come back to Corey and genuinly conclude time after time: Corey is the best!! I feel grateful for all of us out there you are there around making those videos in such a fantastic way. Thanks, you definitely are the man!!!

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

    We are in 2023 ,
    This content is very great,concise ,neat in a truly caring manner ❤ as every single video equal one chapter in web development book from orlie it is perfect work and I appreciate every second in this content, and I hope to do this in all Fields of computer science 😅😅

  • @robel_asefa
    @robel_asefa 3 หลายเดือนก่อน +1

    Corey, your tutorials are always top-notch. Please create more complete projects like this one using different frameworks, such as FastAPI. And, if possible, use both backend and frontend (React.js) frameworks. Thank you for your efforts in creating your videos. 🙏🙏🙏

  • @beefykenny
    @beefykenny 5 ปีที่แล้ว +33

    Woow!!! this video has zero dislikes. I never saw a video with zero dislikes .That's how good this series was

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

      Beefy kenny theres 1 now

    • @suyash.01
      @suyash.01 4 ปีที่แล้ว +5

      some idiot disliked it lol

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

      Not anymore sigh

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

      @@abhay_krishna yeh

  • @patrikloveicyl
    @patrikloveicyl 4 ปีที่แล้ว +4

    I finished my programming class thanks to you, THANK YOU SO MUCH

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

    I bought a few Flask courses on Udemy for my learning. Not saying those were bad, but Corey is so much better and is kind enough to let us study for free. More power to you Corey. 🙏

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

      100 days of code (python) on Udemy is actually very good. Corey's series is just also very well.

  • @danielSyarmak
    @danielSyarmak 5 ปีที่แล้ว +38

    Hey there, how's it going everybody?

    • @danielSyarmak
      @danielSyarmak 5 ปีที่แล้ว +17

      Every time I fire up one of your videos, my wife will parrot the opening greeting and we get a good laugh.
      The completeness with which you present these things is amazing.
      Thank you very much for making these!
      Oh and I'd love to see a SQLAlchemy series from you!

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

      Great Daniel

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

      @@danielSyarmak haha

  • @ianlim5883
    @ianlim5883 5 ปีที่แล้ว +4

    10/10 perfect content! Totally deserves zero dislikes

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

    Thank you! Great content! Could we have a tutorial for continuous integration for our app (maybe using Jenkins)? Now that the blog is on the server if we would like to add some new features to our blog, what's the best practice to add the new features to our production quickly without breaking things? And how to not lost our database when we upload the new code with the new feature added in?

  • @jawyor-k3t
    @jawyor-k3t ปีที่แล้ว

    Thanks for all you have done Corey. You are amazing!

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

    Who dislikes this? Thank you sir!

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

      hi, do you know when did he choose which file on his computer will be used for the site?

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

    Just finished the series and loved it! In the future could you do a video about general site upkeep and maintenance? Like how to look at what's in the database and delete certain posts or accounts. Thanks!

    • @ewanmunro3525
      @ewanmunro3525 4 ปีที่แล้ว

      Would love this! Published my site and noticed some errors in the html and css, how would i update this???

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

    Thanks Corey for this awesome series.

  • @236arm
    @236arm 5 ปีที่แล้ว +1

    Thanks for the tutorials, Corey. Always very helpful!

  • @theJYC
    @theJYC 4 ปีที่แล้ว

    Just used your affiliate link to buy a domain name. Hopefully soon I can contribute more to your channel!

  • @hakidere4179
    @hakidere4179 4 ปีที่แล้ว

    Cristal clear explanation! Thank you!

  • @wingielee
    @wingielee 4 ปีที่แล้ว

    excellent video, excellent instructor

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

    Hey Corey. Thanks for the great work. I would love a video that covers how to display a busy icon like a spinning wheel whenever a process is loading in my flask app. Could you help with that? Thanks.

  • @K2NOMII
    @K2NOMII 9 หลายเดือนก่อน

    Corey, thanks for this series, I found it very informative as I started my career change. A question for you, having successfully implemented csrf locally, I’m surprised when I deployed to production only for it to fail, I kept getting bad request csrf session token is missing. For full context, the flask app was deployed to Heroku, any insight you can provide will be helpful, thanks again

  • @joeshindano8842
    @joeshindano8842 5 ปีที่แล้ว +4

    This is an amazing series, Corey is awesome.
    Btw, how do I update my app?
    And my reset password doesn't work, any help?

  • @c.6727
    @c.6727 4 ปีที่แล้ว

    would reccomend using name.com over namecheap (customer service on namecheap isn't the best)

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

    Could you please do a video on deploying the SQL Database?

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

    Thank you so much

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

    It took me 16 hours before domain started to work. Then it was working for 2h and suddenly stopped to work again for another 6h. So best way is to wait 24+h until you will start to do something else with your site.

  • @Joy-xe9qh
    @Joy-xe9qh 5 ปีที่แล้ว +1

    Thanks

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

    thanks for the great work corey, when is the heroku deployment video coming out???

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

      I’ll be working on that video next. I’d say probably next week?

    • @kenmugabi4153
      @kenmugabi4153 5 ปีที่แล้ว

      @@coreyms thank you so much, wil be looking forward to it....
      thank u for inspiring me to fall in love with programming

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

      Thanks a lot Corey! Thanks to your tutorials I'll be deploying my very first website next week. Respect!

    • @MrMiguelcdpmarques
      @MrMiguelcdpmarques 5 ปีที่แล้ว

      @@coreyms This is the one I (and for sure many others) have been waiting for! Thanks for your great content

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

    when did you choose which file on your computer will be used for your site?

  • @manuelos94
    @manuelos94 5 ปีที่แล้ว

    do you recommend using the "bundle" they offer with hosting and domain and ssl or other stuff, by they I mean all this hosting/domain registrars, or it is better to deploy and buy domain separately

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

    I have a question, could you deploy this on Github Pages?

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

    hello sir i will like to ask do you have any video that your are setting up an email addresses with your domain name ??

  • @TrueLevelsRecords
    @TrueLevelsRecords 5 ปีที่แล้ว

    You a star Master Corey, Afternoon
    Can you also try and show me/ explain how can you see how many people saw and read your post on an App. How can we add an image/video on our post because this is one of the most liked features on the planet.
    You helped me a lot with your videos I have an idea on How to use Python, How to do things but I still need some help because I am still new on Coding And Python to be exact. Can you please try and answer my questions that will help me a lot to continue what I am working on..
    My Pleasure
    Kind Regards
    Mphumeleli Zimba
    Web Developer/ Social Media Team
    True Levels Records

  • @metete_welete
    @metete_welete 5 ปีที่แล้ว

    In the previous video about deployment, will our computer system need to always be on to have someone access the website or have the files been transferred to linode and will always be online?

    • @coreyms
      @coreyms  5 ปีที่แล้ว

      It will be online as long as your Linode machine is up and running

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

    Share the video! He bought a domain name.

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

    question: if i'm running my server off a raspberrypi, how could I enable reverse DNS so that the private IP of the device is not shown in the URL?

  • @timstark6744
    @timstark6744 5 ปีที่แล้ว

    Corey, I'm trying to add dynamic content to the right-side column (the "You can put any information here you'd like" area). I'm going to be pulling from a collection or MongoDB database and have that code working in prototype app, but am confused how I integrate it here leveraging {% block content %}{% endblock %} as I don't see flask support for multiple block content sections in the flask examples. If multiple block contents are NOT supported, what is recommended work around or hack?

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

      Just use another block name: {% block sidebar %}{% endblock %}

  • @kukhokuhletsengwa5730
    @kukhokuhletsengwa5730 4 ปีที่แล้ว

    Hey Corey. Thank you for the lesson!
    However, I am facing an issue when I register a new user in my flask website. I am sending an 'email address confirmation' email to new users. This email contains a link that new users should click on to verify their email address. I am getting the link using url_for('confirm_email', token=token, _external=True). The issue is that the external link I get still uses the address 127.0.0.1:8000 instead of my domain name. It should be: mydomain.com/confirm_email/token, instead it is 127.0.0.1:8000/confirm_email/token.
    I would appreciate any help. Thanks!

  • @BigBear17
    @BigBear17 5 ปีที่แล้ว

    Hi corey is it possible for me to deploy a flask app on LAN? For other users can access the app with in the same small company?

  • @mostmojo
    @mostmojo 4 ปีที่แล้ว

    I must be missing something very basic.
    I've set up a Flask app with nginx and gunicorn on ubuntu 20.10.
    Everything works as intended and site is great.
    However, when I try to make a basic change, i.e. Change the title of h1 tag, to a template - home.html - file, and drag/drop it into FileZilla SFTP, the changes do not take effect in production.
    I've tried hard refresh, incognito, sudo gunicorn restart, but still no luck seeing the basic changes.
    Any ideas as to what I'm missing?
    Thanks in advance!

  • @NathanTallack
    @NathanTallack 5 ปีที่แล้ว

    How about HTTPS certs for new domain name, and how to load them so that you are not sending passwords cleartext like you just did.

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

      HTTPS vid will be coming in the near future

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

    who the fuck disliked it?

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

    Where I have to put in my py script?

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

    can you please do a video on how to upload this site on pythonanywhere.com

  • @PavanKalyan-py5vi
    @PavanKalyan-py5vi 4 ปีที่แล้ว

    i have subdomains in my flask app , but unable to access the " subdomain.domain:8000 " , can you help me how to setup and access subdomain hosted in aws
    Thanks in Advance,

  • @raju5081
    @raju5081 5 ปีที่แล้ว

    Can i use any other service other than linode ? Because my location is India and i want to service my traffic from apac region ?

    • @coreyms
      @coreyms  5 ปีที่แล้ว

      Yes, you can use any service you'd like. DigitalOcean, AWS, etc... anything you want. The process will likely be slightly different than the video, but all of the concepts should be the same.
      I should also point out that Linode has data centers all around the world. I don’t believe they have any in India (yet), but do have centers in different parts of Europe and Asia. 2 more data centers are opening this year, but I’m not sure where they are located.

    • @raju5081
      @raju5081 5 ปีที่แล้ว

      @@coreyms thank you so much. I found your python playlists are very useful and easy compare to all other stuff on the internet.

    • @MMABeijing
      @MMABeijing 5 ปีที่แล้ว

      @@coreyms Namespace offers some hosting as well, and being on a limited budget I wanted to know if we can spin our server on a shared hosting solution. thank you for all the great content (I have reviewed the Python OOP and the Flask tuto, )

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

    I added AAAA record with and without 'www'. www works fine but when I try to access my website without www iit gives me nginx/1.16.1 (Ubuntu) error.

    • @heisenburgfreed7591
      @heisenburgfreed7591 4 ปีที่แล้ว

      After your finish the tutorial of installing SSL: th-cam.com/video/Gdys9qPjuKs/w-d-xo.html
      You could use SSH to login your server, and use command: sudo nano /etc/nginx/sites-enabled/flaskblog
      to add another code block like below with the domain without www at the bottom of the file.
      server {
      if ($host = yourdomain.xxx ) {
      return 301 $host$request_uri;
      } # managed by Certbot
      listen 80;
      server_name yourdomain.xxx;
      return 404; # managed by Certbot

  • @bobbysingh5666
    @bobbysingh5666 4 ปีที่แล้ว

    i got it for 7 dollars with honey. no joke

  • @limcheehean
    @limcheehean 4 ปีที่แล้ว +2

    Can I just modify the DNS record on my DNS service instead of changing my nameserver to Linode?

  • @maclanphere5674
    @maclanphere5674 4 ปีที่แล้ว

    I was sad to learn that myawesomeapp.com is not being actively developed ;)

    • @coreyms
      @coreyms  4 ปีที่แล้ว

      Haha. I still have the domain. Maybe someday I’ll do more with it but for now just going to use it for future tutorials

  • @morello6061
    @morello6061 4 ปีที่แล้ว

    wow I had no idea setting up servers were this complicated :(

  • @szept1988
    @szept1988 5 ปีที่แล้ว

    @Corey I was trying to do the trick with accessing my page without "www" part but it is not working on my end. Are you sure that change at A/AAAA is all we need to do make it work? I did some research and I found that some changes in NGINX config file might be needed as well (stackoverflow.com/questions/7947030/nginx-no-www-to-www-and-www-to-no-www) but currently this is also not working for me (I need to take a closer look on that)

    • @coreyms
      @coreyms  5 ปีที่แล้ว

      Hmm, I got it working last night without any changes to the server. I believe the A Record is all you need in order for it to work with both domains; however, if you wanted to have one redirect to the other then you would need to make some changes on the server.

    • @szept1988
      @szept1988 5 ปีที่แล้ว

      ​@@coreyms Hm. Ok. Maybe I just need to wait until my changes will apply. I will look on that tomorrow. The other option is that I added HTTPS to my page letsencrypt.org/ and it added to my NGINX config file some data. Maybe that mess up something. PS. Many thanks for your tutorials. They helped me a lot :)

    • @szept1988
      @szept1988 5 ปีที่แล้ว

      I got it working. But I had to edit my /etc/nginx/sites-enabled/mypage config file.

    • @giorgikochiashvili6947
      @giorgikochiashvili6947 4 ปีที่แล้ว

      @@szept1988 do you mind sharing your how you fixed it? I have the same problem. Thanks.

    • @szept1988
      @szept1988 4 ปีที่แล้ว

      @@giorgikochiashvili6947 It was some time ago and I don't remember exactly, but what I did is basically what stackoverflow suggested (and off course changes in A/AAAA as Corey described). Here is part of my page nginx config file which I suppose helped me:
      server {
      if ($host = www.mysite.com ) {
      return 301 $host$request_uri;
      }
      listen 80;
      server_name www.mysite.com;
      return 404;
      }
      server {
      if ($host = mysite.com ) {
      return 301 www.$host$request_uri;
      }
      listen 80;
      server_name mysite.com;
      return 404;
      }

  • @comedyclub333
    @comedyclub333 5 ปีที่แล้ว

    Hey there guys, maybe you can help me fixing a problem with flask and flask-wtf:
    I gave all my blueprints different subdomains, so I needed to set up the SERVER_NAME config to my domain. Since flask-wtf uses csrf for security reasons, I cannot validate any form with flask-wtf for now, because of the SERVER_NAME beeing set ^^
    (nickjanetakis.com/blog/fix-missing-csrf-token-issues-with-flask)
    Has anyone of you experience with that and know how to work around this issue?