How To Deploy Django To Digital Ocean | Django E-Commerce Website | Part 9 | Django Hosting

Поділитися
Вставка
  • Опубліковано 17 жов 2022
  • Learn how to deploy a Django project to a live server on Digital Ocean. I do things from scratch. I create a new server, update and install all of the software.
    Then I proceed to setting up the environment, getting the code and similar.
    If you want to try Digital Ocean your self, you can get $200 dollar by clicking the link below (This also helps me out):
    m.do.co/c/d3cdd4293e67
    --
    Commands:
    sudo apt update
    sudo apt upgrade
    sudo apt install python3-pip python3-dev nginx
    pip install --upgrade pip
    python3 venv -m petnet_env
    mkdir -p /webapps/petnet/
    cd /webapps/petnet/
    sudo groupadd --system webapps
    sudo useradd --system --gid webapps --shell /bin/bash --home /webapps/petnet petnet
    pip install -r requirements.txt
    ---
    Code With Stein Premium
    If you want to learn even more from me, check out my website codewithstein.com where you can track progress, talk to me and similar :-D
    Support me
    Donate: www.paypal.com/paypalme/codew...
    Patreon: / codewithstein
    Merch: shop.spreadshirt.com/code-wit...
    Important links
    Discord: / discord
    Github: github.com/SteinOveHelset/pet...
    Twitter: / codewithstein
    Website: codewithstein.com
    ---
    #codewithstein #django #digitalocean #hosting #deploy #deployment #djangodigitalocean #python #learndjango #djangotutorial #pythondjango #djangoecommerce #ecommercewebsite

КОМЕНТАРІ • 48

  • @trosgate
    @trosgate Рік тому +9

    This might be my second comment in your entire channel but that again is a confirmation of my respect for you. There are projects you build for free here but others sell their systems of less value compared to yours.
    Not really here for comparison but to tell you that we love you and your channel that we will go all out to share this channel. And oh! Thanks for your "Time tracking saas with Django" tutorial. Keep up

    • @CodeWithStein
      @CodeWithStein  Рік тому +1

      Thank you so much for the comment! This means a lot to hear 😁

  • @pm1234
    @pm1234 5 місяців тому +2

    Fantastic tutorial, Thank you Stein!
    1 year after you posted it, I finally learned Django the right way with you :)
    Like you, I kept a log of each step with main actions.
    It took me days to go through this series.
    I hope to learn more!! Ha det!

    • @CodeWithStein
      @CodeWithStein  5 місяців тому

      Nice :-D Glad to hear that you enjoyed it :-D

  • @wienwinsituation
    @wienwinsituation Рік тому +4

    Love that you have trouble and show how you troubleshoot.
    Too many on UA-cam drives too safe, so the viewers don’t learn what to do when shit hits the fan!

    • @CodeWithStein
      @CodeWithStein  Рік тому +1

      Thanks 😁 yeah, I think it is a very important part of Development ☺️

  • @rickships1333
    @rickships1333 Рік тому

    Hey Stein, thx for the good content. I rly hope that you give this project more sessions! Like put in a contact form, responsive navbar, darkmode toggle, kind of premium account for vendors, clean order page etc. Thx again for the work, i like and upvote were i can to suport :)

  • @euriperez9586
    @euriperez9586 Рік тому +1

    Great as always!

  • @george491
    @george491 Рік тому +2

    Great respect for you. Forever grateful for all your videos.

    • @george491
      @george491 Рік тому +1

      Would you consider a video involving adding security to the website

    • @CodeWithStein
      @CodeWithStein  Рік тому

      Thanks :-D

    • @CodeWithStein
      @CodeWithStein  Рік тому

      What sort of security are you thinking about? :-)

    • @george491
      @george491 Рік тому

      @@CodeWithStein For example SSL and a web application firewall.... I have also noticed that after deployment of a website on Digital Ocean, the admin panel visual appearance is not working... how can I go about this

  • @biographyer1929
    @biographyer1929 Рік тому +2

    Love from India

  • @johnmccarthy7971
    @johnmccarthy7971 Рік тому +1

    Good tutorial. Thanks

  • @abdessamade6995
    @abdessamade6995 Рік тому +1

    great tutorial thank you

  • @tharushafernando6688
    @tharushafernando6688 Рік тому +1

    Great content man. I have two seperate react apps tgat work with django back end. Can host both of them in same droplet??

  • @Coden69
    @Coden69 Рік тому +1

    Thanks mann

  • @noneofmynameswork1
    @noneofmynameswork1 6 місяців тому

    You should make a video about hosting multiple websites from a single droplet (mentioned at 6:32)

    • @CodeWithStein
      @CodeWithStein  6 місяців тому +1

      That is a good idea :-D Will add it to my list :-)

  • @ibrahimoglu
    @ibrahimoglu Рік тому +1

    👍

  • @saber6445
    @saber6445 Рік тому +1

    I already have a VPS with ubuntu. Can I use that instead?

  • @davidlouis1076
    @davidlouis1076 Рік тому +1

    Is it okay to use the tailwind css for production?

    • @CodeWithStein
      @CodeWithStein  Рік тому

      Yes, but not the CDN. You should build it correctly. Here is a guide :-)
      tailwindcss.com/docs/installation

    • @davidlouis1076
      @davidlouis1076 Рік тому

      @@CodeWithStein thank you 😊

  • @saber6445
    @saber6445 Рік тому +2

    Do you have any idea how you can use subdomains?

    • @CodeWithStein
      @CodeWithStein  Рік тому

      Yes, but subdomains isn’t usually connected to Django. But to the server 😉

    • @saber6445
      @saber6445 Рік тому

      @@CodeWithStein i am using namecheap. How can I connect that domain to the server, and then add subdomains.
      Like what do I need to do with the DNS

  • @saber6445
    @saber6445 Рік тому

    How can I connect sa mysql database

    • @CodeWithStein
      @CodeWithStein  Рік тому

      Hey, just search for mysql or Postgresql on my channel, I have some tutorials on it 👍🏻

  • @charlesmay2000
    @charlesmay2000 Рік тому

    Hey, I've been trying to find content on django-celery and django-celery-beat because I have a need for it in my project but can't figure out how to get it working. There isn't much out there on it so I think if you made some videos revolving around that you could help a lot of people like me! What I'm doing is a simple status app for a group of people that works as a chat room using channels, and I wanted to add in an option to schedule yourself out between 2 times w/ django-celery-beat.

    • @CodeWithStein
      @CodeWithStein  Рік тому

      Hey, I haven’t used celery in a while. I might look into it in a while, but not for a while :/ too busy now :/

    • @def_username
      @def_username 10 місяців тому

      have you found an answer to this?

  • @saber6445
    @saber6445 Рік тому +1

    my domain is not showing. the ip is the one that shows my website
    I am using namecheap. my nginx looks to be correct