How to Deploy a Django App and Postgres Database to Render

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

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

  • @prettyprinted
    @prettyprinted  Год назад +9

    To install Django 4.0 and greater, create an environment variable on your dashboard called PYTHON_VERSION and set the value to 3.11.4 (or whatever the latest version of Python is).

    • @manishkumarmali95
      @manishkumarmali95 Год назад +1

      i am face server error (500) so how can resolve this

    • @yahialinus1851
      @yahialinus1851 10 месяцев назад +2

      what about Django projects with static and media files
      it seems to only deploy the HTML without any styling

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

      @@yahialinus1851 Have you tried collectstatic?

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

      @@yahialinus1851 found any relevent resource or solution?

    • @danellsonm9505
      @danellsonm9505 26 дней назад

      @@yahialinus1851did you found a way to deploy it and include the statics files?

  • @bethuelthipe-moukangwe7786
    @bethuelthipe-moukangwe7786 9 месяцев назад +1

    You assisted me to be able to use Render for my first time. You made it easy for me to understand. Even the section of creating database and connecting it using postgres.

  • @jakin314
    @jakin314 Год назад +3

    I've been following your channel for 4 years now and have learned a lot from you. Thank you for the great work you do.

  • @kidsAnimation_network
    @kidsAnimation_network 9 месяцев назад

    I normally come back here each time i want to deploy my django apps. Moving from sqlite to postgres is made easier with this video

  • @anunsawonv
    @anunsawonv 10 месяцев назад

    It's my first time deploying a django app and your video helped a lot. Thank you so much!

  • @xasyo96
    @xasyo96 Месяц назад

    I just want to thank you for this amazing vídeo! I've been following some other tutorials to be able to deploy my django api alongside a postgres database and I was not being able to do so until I found you. Very well explained, I love how you show the debugging process in Render's dashboard 🙏

  • @shafiulsabbir7245
    @shafiulsabbir7245 9 месяцев назад

    Thanks a lot bro. Its working fine. You have removed a lot of pressures from my head.
    Thanks a lot once again.

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

    thankyou to you i successfully deployed my django app

  • @brayangarzon7732
    @brayangarzon7732 Год назад +8

    How to configure static files?

  • @eduardolucas391
    @eduardolucas391 Год назад

    As usual, another brilliant material being shared with the community. Congratulations for you unvalueable work.

  • @AhmedSayed-wu9wu
    @AhmedSayed-wu9wu 11 месяцев назад

    Great video!. Thank you so much you helped alot, I've been searching for a way to add an exisitng postgres database to my django app and I couldn't do it until i watched this video, I just needed to create a postgres instance on Render then use DBeaver to export the exsiting database on my local machine and import it to the external postgres instance and it worked like a charm.

  • @chiedozieehirim5659
    @chiedozieehirim5659 7 месяцев назад

    Thanks a lot.
    This was exactly what I needed to deploy my django project

  • @sagartamang0000
    @sagartamang0000 Год назад

    Wow, man, just deployed my first django app. Thanks alot!

  • @MagnusAnand
    @MagnusAnand 7 месяцев назад

    Great video!!!! It was cool to show the errors 💪💪

  • @manny7662
    @manny7662 Год назад +4

    what if I want to connect a Postgres database with content already in it?

  • @gonmore
    @gonmore 10 месяцев назад

    nice tutorial, the best one for render

  • @soumavadas1400
    @soumavadas1400 8 месяцев назад +4

    Uploaded the project on Github but the JS , CSS are not working

  • @Felipe-ib9cx
    @Felipe-ib9cx Год назад

    You helped me a lot to understand these settings. Thank you so much

  • @pedroaugusto5995
    @pedroaugusto5995 Год назад +6

    Thanks for the video, but everytime i try, render give the error "ModuleNotFoundError: No module named 'nameofmyapp.wsgi' ". Can you help me?

    • @jonsnow5253
      @jonsnow5253 Год назад

      i have the same problem, have you find a solution?

    • @pedroaugusto5995
      @pedroaugusto5995 Год назад

      @@jonsnow5253 I had two folders with the same name of the app,

    • @flavioovatsug
      @flavioovatsug Год назад

      @@pedroaugusto5995 But by default, Django already creates these two folders, one containing configuration files and the other being the project's main directory. Did you manage to resolve it by changing the name of any? Sou brasileiro tbm

    • @TechnoSan09
      @TechnoSan09 10 месяцев назад

      it's actually nameofproject.wsgi
      not app name

    • @vamsikumar6457
      @vamsikumar6457 9 месяцев назад

      use .wsgi

  • @hopesain5065
    @hopesain5065 Год назад +3

    How do you guys configure disks like for media files on render?

  • @ffzz007
    @ffzz007 Год назад +3

    Why my css is not working u
    after i uploaded on Render?

  • @divyajeetpala6205
    @divyajeetpala6205 8 месяцев назад

    Great one man! Really helpful!

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

    can you also explain how to configure media and static files

  • @vamsikumar6457
    @vamsikumar6457 9 месяцев назад +2

    How to configure static files?? I have used some static files, they are not coming after deployment. Please respond to this. Thank you

  • @phenomenal_py
    @phenomenal_py 11 месяцев назад

    Thank you so much it was very useful for me

  • @danielolusesi776
    @danielolusesi776 10 месяцев назад +1

    Hi this really helped me deploy my app to render but the issue i have now is with my media folder how do i also handle that on render because after deployment my image and pdf file added to the system

  • @overwrite-techopinions4365
    @overwrite-techopinions4365 10 месяцев назад

    It really helped a lot thank you so much

  • @mlamintamba
    @mlamintamba Год назад +4

    Can you please show how to deploy frontend ReactJS and backend Django

  • @TechnoSan09
    @TechnoSan09 10 месяцев назад +1

    best django deployment video
    please could you do postgresql

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

    thanks bro, it helped alot

  • @tunahantatli
    @tunahantatli Год назад

    Everything is in this video. Thank you My friend. 😉❤💯🖖🖖🖖

  • @alexmuia
    @alexmuia Год назад +1

    Thank you so much for this!!!

  • @olaniyigeorge6960
    @olaniyigeorge6960 Год назад +3

    Awesome. I’m still getting the bad request error though. Exactly like the one you got. Even after pasting in the correct url without the like you did.
    What might be wrong?

    • @BombTubeYou
      @BombTubeYou Год назад

      Same, I got the disallowed host error at /

  • @VamshiKumar-vk2sd
    @VamshiKumar-vk2sd 7 месяцев назад

    Thank you very much..! I want to know how pricing will works in render. Please let me know

  • @SergeyChalyi
    @SergeyChalyi Месяц назад

    Thank you for the video)

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

    thanks! this was helpful

  • @skhomo
    @skhomo 8 месяцев назад

    Thank you for this, was looking for a place to host django app for free!!!!

  • @corntvn1340
    @corntvn1340 11 месяцев назад

    Hi,
    This is a very nice tutorial. However, with this postgres connexion the web app is very slow. Any idea how to speed it up?

  • @arewatv1446
    @arewatv1446 Год назад +1

    I deployed the backend branch and render keep saying unable to find requirements.txt and upgrade pip but my pip is upgraded

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

      have u found fix for requirements?

  • @alyaaahmed4462
    @alyaaahmed4462 7 месяцев назад

    Please do you know why i lose my data stored in the database each time i deploy my last commit ?

  • @brayanquiroz7706
    @brayanquiroz7706 10 месяцев назад

    thanks bro, i really appreciate it

  • @kennyetti4398
    @kennyetti4398 Год назад

    Very Helpful Video❤❤❤

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

    muy aclarador! gracias!

  • @sundayothniel130
    @sundayothniel130 Месяц назад

    You helped me

  • @mghalichi
    @mghalichi Год назад

    Excellent video! How do you set the environment variables so that after you deploy to Render you can still run your app locally to continue to edit going forward?

    • @prettyprinted
      @prettyprinted  Год назад +2

      You can use something like python-dotenv and create a .env that will hold all your environment variables in your development environment.

  • @Cristian_Cardona
    @Cristian_Cardona 7 месяцев назад

    Does anyone know why in "import dj_database_url" it appears: Import "dj_database_url" could not be resolved????

  • @JordanLopez_
    @JordanLopez_ Год назад +1

    Thank you bro.. but the static files aren't working, do you have any solution for that please

    • @prettyprinted
      @prettyprinted  Год назад

      Do a python manage.py collectstatic in a build script. Here's an example: testdriven.io/blog/django-render/

  • @metete_welete
    @metete_welete Год назад +1

    Having to downgrade requirements is really stressful though. I've encountered the problem when trying to host on render for both Flask and Django problems and I just couldn't keep up having to downgrade everytime because it also requires me to downgrade other requirements not only Flask/Django.
    Anytime I recreate my requirements.txt file everything goes back to latest version and I have to start the process of downgrading before pushing to remote.
    Now I know I'm not just the only one facing the issue.

    • @prettyprinted
      @prettyprinted  Год назад +2

      Yeah that is really annoying. I'll look into it more to see if there's a fix on Render.

    • @prettyprinted
      @prettyprinted  Год назад +3

      I looked into it, and you simply have to set your Python version in your environment. PYTHON_VERSION as 3.11.4 will allow you to install the latest version of Django.

    • @metete_welete
      @metete_welete Год назад

      Thank you. I'll take note of that

  • @Sushantkrsky
    @Sushantkrsky 7 месяцев назад

    It's showing an error that the databases is not defined

  • @L.ElishaEdgar
    @L.ElishaEdgar 11 месяцев назад

    I just deployed my project following you but it is just raw HTML with no CSS, how do I add css?

  • @jhonrhayparreno7220
    @jhonrhayparreno7220 8 месяцев назад

    how to run via asgi?

  • @thepropollo9157
    @thepropollo9157 Год назад

    do you know how to deploy in render but with an images app pliz help

  • @leandromore6680
    @leandromore6680 9 месяцев назад

    top de mais grande professor

  • @generalstep
    @generalstep 7 месяцев назад

    my styllling not working after deplyoing

  • @korlasaikiran6912
    @korlasaikiran6912 11 месяцев назад

    I have deployed it but i am getting 500 server error

  • @roqzyfrosh4737
    @roqzyfrosh4737 Год назад

    Thank you very much, i have successfully deployed my app but the images are not showing. pls kindly help thank you

  • @azizbekgulomov21
    @azizbekgulomov21 Год назад

    My cmd doesn't work export command, why ?

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

    tnx alot

  • @jithingeorge1946
    @jithingeorge1946 Год назад

    hi, how do i connect it to pgadmin?

    • @TechnoSan09
      @TechnoSan09 10 месяцев назад

      right click servers on left pane, register new server
      enter all the connection credentials which is present in external url of render's postgresql (he explained)

  • @DAVIDE-wr2iu
    @DAVIDE-wr2iu Год назад

    Thanks

  • @japoneon8915
    @japoneon8915 Год назад

    From Argentina. I ❤ you dude. Please show how ti deploy telegram python bot

    • @prettyprinted
      @prettyprinted  Год назад +1

      I'll look into that topic. Thanks for the idea.

  • @frameff9073
    @frameff9073 Год назад

    thank

  • @dmbrv
    @dmbrv Год назад

    mice