Это видео недоступно.
Сожалеем об этом.

Deploy a Django web app to FL0 [FREE]

Поделиться
HTML-код
  • Опубликовано: 15 авг 2024
  • Deploy a Django web app to FL0 [FREE]
    🔗 LINK(S) MENTIONED:
    Websites:
    www.fl0.com/
    github.com/
    Packages:
    pypi.org/proje...
    pypi.org/proje...
    pypi.org/proje...
    pypi.org/proje...
    Miscellaneous:
    whitenoise.rea...
    git-scm.com/do...
    🧑‍🏫 COURSES
    Explore my latest Cloud computing & Django courses for beginners and intermediate developers:
    www.cloudwithd...
    📢 COACHING
    Learn more about my personalized coaching sessions:
    www.cloudwithd...
    📑 BLOG
    Read insightful articles and tutorials on Cloud computing & Django development:
    www.cloudwithd...
    ⭐️ GITHUB
    Access my open-source projects and contribute to the community:
    github.com/clo...
    📺 WATCH NEXT
    Looking to refresh your skills or dive into something new?
    Deploy a Django web app to Python Anywhere [FREE]: • Deploy a Django web ap...
    CRUD mastery with Django | Build a CRM application:
    • CRUD mastery with Djan...
    Master the fundamentals of Django admin:
    • Video
    ❤️ SUPPORT
    If you enjoy my content, consider supporting me through PayPal. Your contribution helps me to create more valuable resources. Thank you for your generosity!:
    www.paypal.com...
    MY OTHER SOCIALS
    🌍 My website 👉 www.cloudwithd...
    🐦 Twitter 👉 / cloudwdjango
    💌 MY NEWSLETTER
    Sign up for free to stay updated on the latest Cloud With Django announcements!:
    www.cloudwithd...
    WHO AM I?
    If we haven’t met before - Hey 👋 I'm Arno! Just a typical software developer like you who has a passion for creating content on Cloud computing and Django 🚀
    ⌚️ Video timestamps:
    00:00 - Intro
    00:08 - Register for a FL0 account
    03:36 - Create a Postgres database on FL0
    07:03 - Install packages for our database
    08:30 - Configure our database settings
    11:58 - Setup our environment variables
    18:14 - Testing our admin user
    19:55 - Handling static files with WhiteNoise
    24:02 - Important deployment configurations
    29:06 - Push our application to GitHub
    42:48 - Deploying to FL0

Комментарии • 47

  • @andy-agandy1604
    @andy-agandy1604 5 месяцев назад +1

    I was looking for copper, but I found gold (your RUclips channel). I tried to deploy my Django project without success by watching other videos on RUclips, but you were the only one who explained it so clearly, so I had no problem. thanks for the good video (I'm a self-taught programmer)

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад +3

      Hi,
      Thank you so much for your kind words. It is deeply appreciated!
      It's a pleasure! I'm glad that you found the tutorial helpful and that you like the channel! Especially as a self-taught programmer!
      All the best to you!

  • @sediqiata2678
    @sediqiata2678 4 месяца назад

    I have been your subscriber for 1 and half year you are doing great bro

    • @CloudWithDjango
      @CloudWithDjango  4 месяца назад

      Thank you so much for subscribing to the channel for so long. I really appreciate your support and kind words! All the best to you! :)

  • @alliswell5769
    @alliswell5769 6 месяцев назад +1

    Can we deploy the python django with MySQL database?

    • @CloudWithDjango
      @CloudWithDjango  6 месяцев назад +1

      Hi,
      Not with FL0, you'd need to get a MySQL database from Render instead or elsewhere

  • @uniroo8795
    @uniroo8795 4 месяца назад

    I am trying to use it today but continously getting errors and the following pop up image "We've unfortunately decided to retire our services and database platform, please make sure to migrate anything you need off our platform by 4 May 2024 (AEST)". So probably will not be able to use it anymore?

    • @CloudWithDjango
      @CloudWithDjango  4 месяца назад

      HI,
      Yes, it might either a resource limit or the service may be discontinued or restructured

  • @jonatanmsanchez
    @jonatanmsanchez 2 месяца назад

    Would whitenoise work if i want to upload images from my forms?

    • @CloudWithDjango
      @CloudWithDjango  2 месяца назад +1

      Whitenoise will work for static files. I don't think for media files such as images. In that case you'd need to use Amazon S3 or Cloudinary.

  • @natashasen3548
    @natashasen3548 5 месяцев назад

    I am getting the error at the time of deployment. I have already installed gunicorn. Please help.
    bash: line 1: gunicorn: command not found

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад

      Hi,
      Please ensure that gunicorn has been installed within your application and that your procfile path has been configured correctly in your application.

  • @orcofficialyoutube
    @orcofficialyoutube 5 месяцев назад

    I will try to deploy my django app here because when i deployed my app on Render(your tutorial too) i found it hard to pay. From Philippines

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад

      HI,
      No problem! Good luck with the video and deployment to Flo.

  • @y.a.s.h_16
    @y.a.s.h_16 6 месяцев назад

    Hello, amazing explanation. Please clarify how is flo better or different from aws free tier. Also i have a django project that was setup using cookiecutter and uses Docker, how can i know that aws free tier resources will be enough for my application. I want to deploy on a cloud to showcase to recruiters, traffic will be negligible which service will be best for my use case.

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад

      Hi,
      Thank you! I'll provide you with some insight into your question. FLO differs from AWS Free Tier as it operates on a decentralized blockchain infrastructure. For your Django project with Docker, AWS Free Tier is suitable for showcasing to recruiters with low traffic, providing cost-effective hosting. Monitor usage metrics, and if needed, AWS offers scalability options for increased resources.

  • @codingpandas
    @codingpandas 6 месяцев назад

    hello bro, i am watching your channel continuously , I am learning django for quite a long time now, every day when i finally think now i know best practises and django, i come to know there is more to learn, can you create kind of a roadmap like what are the libraries and packages to use with django, and how to build cloud-ready applications. There are so many out there, but the problem with those people is they mostly work with express or php, then they tell just the basics that they think is needed to build cloud-ready web applications in django.. I would really appreciate that and also any bootcamps that you would recommend for learning django.. My knowledge in python is pretty solid, i dont have problems learning things, i just cant find a structured roadmap.... thanks

    • @CloudWithDjango
      @CloudWithDjango  6 месяцев назад +1

      Hi,
      Thank you for your support.
      Sure, for a comprehensive roadmap in Django, focus on mastering Django REST framework, incorporating popular packages like Celery for task scheduling, integrating with databases like PostgreSQL, and exploring deployment on cloud platforms like AWS, while considering Django Channels for real-time functionality. Before taking bootcamps, I'd suggest searching for and taking high-quality Udemy courses first that focus on Django and the like.
      Good luck to you!

  • @user-fs2wb6px6u
    @user-fs2wb6px6u 6 месяцев назад

    how to deploy django to apache server using mysql database?

    • @CloudWithDjango
      @CloudWithDjango  6 месяцев назад +1

      Thank you for the suggestion! Unfortunately, I can't give a simple answer to that in a message.

  • @hk0636
    @hk0636 5 месяцев назад

    Can this serve media files?

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад

      I believe there are limitations with media files. I'd recommend that you use Amazon S3 for media files or Cloudinary.

  • @allenlu7675
    @allenlu7675 4 месяца назад

    When I python manage.py migrate, appear below error:
    django.db.utils.OperationalError: connection to server at "HostName" (3.131.64.200), port 5432 failed: server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.

    • @CloudWithDjango
      @CloudWithDjango  4 месяца назад

      Hi,
      Please ensure that you complete all of your migrations before deploying and that you follow the video explicitly as is and step by step. You won't have any issues then. Additionally, please check that your application is working locally before starting the deployment process

    • @allenlu7675
      @allenlu7675 4 месяца назад

      @@CloudWithDjango
      Hi,
      But I just haven't deployed yet. After creating database, write directly in settings file:
      DATABASES = {
      'default': ...
      }
      Then I issued the command: "python manage migrate", but the above error appeared.
      Render also have the same error.

    • @CloudWithDjango
      @CloudWithDjango  4 месяца назад

      I understand. Please double check your settings and kindly follow explicitly as I show in the video. It will work correctly.

    • @allenlu7675
      @allenlu7675 4 месяца назад

      @@CloudWithDjango
      Could it be related to regional mismatch?

  • @coderPlusDesigner
    @coderPlusDesigner 6 месяцев назад

    I successfully uploaded my Django project to this platform but cannot get access to my uploaded files to the media folder of the project. There was no error during the upload of those files so it should be an "access" problem. Is it some kind of limitation of the platform for "free" plan? There is no word about this on its docs and can even get access to its discord server to ask about it.

    • @CloudWithDjango
      @CloudWithDjango  6 месяцев назад +1

      Hi,
      It's possible that the platform's free plan imposes restrictions on accessing uploaded media files or you'd want to rather use Amazon S3 for your media files (might be an easier solution overall).

    • @coderPlusDesigner
      @coderPlusDesigner 6 месяцев назад

      Yeah, that's what I thought as a solution too. Looks like another cool but not the coolest tech here 😏. btw, Thank you for your answer, I definitely subscribe to you, you are one of the people whome I learn things easier from 👍@@CloudWithDjango

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад

      Indeed, that'd be the best way I'd say in this case. Haha, yeah it would all depend on your use case with the tech. Of course, my pleasure! Thank you for the sub, and I appreciate your kind words! I'm glad that you find the content easier to grasp!
      Good luck to you!

  • @sohailshah1574
    @sohailshah1574 5 месяцев назад

    Sir please continue this video on "how to serve media files on production", if possible. I read out the whitenoise docs but unfortunately whitenoise don't support media files..

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад +1

      Hi,
      I'm glad to hear that you got your application deployed. Of course, my pleasure!
      An alternative for media files is Amazon S3. A video is available on the channel for that.
      To check error 500 you would need to temporarily set debug=true first to check the error and then revert back to debug=false. Essentially, it's best to check your application locally before deploying it.

    • @sohailshah1574
      @sohailshah1574 5 месяцев назад

      @@CloudWithDjango thank you sir for your expensive time

    • @CloudWithDjango
      @CloudWithDjango  5 месяцев назад

      My pleasure!

    • @christopheanfry2425
      @christopheanfry2425 4 месяца назад

      Your channel is amazing thank you. One question, if I’m using Django-Tailwind with no JavaScript I don’t need whitenoise?

    • @CloudWithDjango
      @CloudWithDjango  4 месяца назад

      Hi,
      Thank you so much! Right, so If you're using Django-Tailwind without JavaScript, you might not strictly require Whitenoise for serving static files, as long as you have an alternative method in place such as a CDN or a web server. However, considering Whitenoise's benefits in optimizing static file delivery and simplifying deployment, it's advisable to include it in your project for improved performance and security.

  • @Coden69
    @Coden69 6 месяцев назад

    awesome

  • @xkatiwa4458
    @xkatiwa4458 6 месяцев назад

    BAD REQUEST 400 i followed the whole video

    • @CloudWithDjango
      @CloudWithDjango  6 месяцев назад

      Hi,
      This is a HTTP error, and can be caused due to a wrong url path or domain assigned.
      Please check your configurations in your settings.py and ensure that you've configured everything else correctly.

    • @MrValVet
      @MrValVet 6 месяцев назад

      check for missing trailing slash

    • @CloudWithDjango
      @CloudWithDjango  6 месяцев назад

      Thank you for your input!