Deploy a Django web app to a Render live server with PostgreSQL

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ •

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

    PLEASE READ on the packages required + static / media files:
    Requirements.txt file:
    asgiref==3.6.0
    dj-database-url==1.2.0
    Django==4.1.6
    django-environ==0.9.0
    gunicorn==20.1.0
    psycopg2-binary==2.9.5
    sqlparse==0.4.3
    tzdata==2022.7
    Please note that you will also have to setup your static and media files as well. Here is an example tutorial with Amazon S3:
    ua-cam.com/video/JQVQcNN0cXE/v-deo.html

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

    I'm gonna recommend this video to my fellow Django devs. Good job! Kindly keep us posted on these Django tutorials.🔥

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

      Hi,
      Thank you for your feedback and for sharing my video tutorial. I appreciate it.
      Of course, lots more to come :)
      All the best!

  • @DougMcLain
    @DougMcLain 3 місяці тому

    Thanks!, your tutorials are always the best. I really appreciate how you, show examples for deployment with a simple apps first. It really helps to minimize all the other potential issues.

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      Thank you so much for the Super thanks!! I appreciate it so much along with your kind words and support! I'm glad that you enjoy my tutorials and that you especially enjoyed this one with the manner of instruction! Thank you again!

  • @luandesouza450
    @luandesouza450 Рік тому +3

    Thank you very much for the tutorial. It helped me out a lot, I was so frustrated trying to deploy my django project with a free option that I almost drop it in the recycle bin.

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

      My pleasure, Luan!
      I'm glad that it helped you out!
      Haha, 🤣 I get what you mean with the frustration. I felt like setting my laptop on fire when I first tried to deploy my Django application

  • @user-9bk
    @user-9bk Рік тому

    Awesome...... It's really a great and helpful for any kinds of developer. If you are facing a great problem to deploy django app, you can follow this tutorial...It is easy to understand.. Thank you Sir..

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

      Thank you for your kind feedback, Md. It is very much appreciated.
      I'm glad that the video tutorial was helpful to you.
      It is a pleasure :)
      All the best,
      Arno

    • @user-9bk
      @user-9bk Рік тому

      @@CloudWithDjango Welcome & carry on

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

    Thank you for your fantastic VDO, it's very easy to follow and makes I better understand, it's help me a lot, also make I understand the render services as well. Please keep going, I love the style that you made with the VDO so much.

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

      Hi Prapath,
      Thank you for your kind feedback. It is very much appreciated! :)
      I'm glad to hear that my video was of value to you, and that you enjoy my style.
      All the best,
      Arno

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

    I have an error when I try to deploy my server using name.wsgi:application . I have nested directories , like : rootdir - name-name and the command I described earlier works for me only when i do like so "name.name.wasgi:application" , but after that i get the next error "ModuleNotFoundError: No module named 'name.settings' " , how can i fix it?

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

      Hi,
      Yes, if you have nested directories that could cause an issue, and the solution would be name.name.wasgi:application.
      Module not found could indicate that your sys path or project directory isn't organised/defined correctly.
      A simple fix to this is to deploy your application with name.wsgi:application without altering your directories, and to not nest them.
      Good luck!

    • @DeanWinchester-qs1ck
      @DeanWinchester-qs1ck 5 місяців тому

      ​@@CloudWithDjango Hey there Champ! appreciate that ur responding to comments on ur vidoes even after a while, but I ran into the same issue where I have nested dirs on my project. I have main_project->backend->backend. I structured it this way since I have React + DRF tech stack and its easier to organize files when I have separate dir for my frontend(React) and backend(Django). Any ideas of the workaround? would really appreciate it, thanks!

    • @DeanWinchester-qs1ck
      @DeanWinchester-qs1ck 5 місяців тому

      Nvm, managed to fix it, didn't know that Render's settings offer a "Root Directory" option just have to specify my 'backend' dir for my 'mono-repo' project, it is now up and running, thanks!

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

    Loving your tutorials. I was wondering if you could do a video on deploying Django with Django-Q and Redis to Railway. I already have a Postgres DB on Railway and never deployed an app before and it seems overwhelming. Do I need to dockerize the app? Thanks!

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

      Hi,
      Thank you for your feedback and for the suggestion.
      You don't need to dockerize your app. You can simply connect your database on railway to your django application.

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

      @@CloudWithDjango Thanks, I finally made it work by using 2 services, one for the server and another for qcluster.

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

    I need to ask this sir, i have deployed my django application + postgresql and i have model with image and some description and view it on the page and when I add and object it os completely fine everything is displayed but after maybe 30 mins, my images are gone but not the descriptions. Now I have to delete all the objects ang add it all again but will also disappear later. What might be the problem?

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

    I have a unrelated question, I have a FileField when it returned it comes as a path not as a URL(API endpoint) it happens before and after deployment . I hope you get what I mean. Thank you.

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

      Hi,
      Thank you for reaching out.
      I'm not 100% sure of how your application is laid-out exactly, but a recommendation to help you would be to look into using Amazon S3 for your file handling. There is very good documentation that you can research online that should in-turn alleviate your problem as a whole.
      Good luck!

  • @mraider45
    @mraider45 9 місяців тому

    you really did a great job on this tutorial , just what i was looking for. Thankyou

    • @CloudWithDjango
      @CloudWithDjango  9 місяців тому

      Thank you so much! It is a great pleasure!
      I wish you all the best in you development journey!

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

    I keep getting module not found error. (I will write the commands and file names with your project folder names)
    It says No module named 'elevate.wsgi'

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

      Please ensure that you are referring to your projects wsgi in your settings.py file.

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

      @@CloudWithDjango I solved it, it was due to directory structure. Took all wsgi and settings files to directly root folder not in some folder inside root folder. Thanks.

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

      No worries! Glad to hear that you got it working!

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

    Hi Sir. Your videos have truly been a lifesaver. I am a beginner and at my workplace I have to deploy a django application that I am working on. My database has no writes because we don't collect any user data and there are no forms. Do I have to use a Postgres database. I have been reading online that for production, use postgres and not sqlite because sqlite can get corrupted. I was just wondering what I should do because my job uses AWS so I don't think I could use Render.
    If you have any videos for deploying django with postgres database on aws, that would be very helpful.

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

    Truly amazing tutorials. Thank you so much for sharing.

    • @CloudWithDjango
      @CloudWithDjango  10 місяців тому +1

      Thank you so much! I appreciate you taking time to watch them!

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

    Do you know why I lose my data stored in the database each time i reload the page or deploy a last commit?

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

      Hi,
      You shouldn't lose the data in your database. Please ensure that you are properly connected to your production database. Or it can indicated a resource usage limit on the free tier

  • @harshrajyoutube
    @harshrajyoutube 8 місяців тому

    My css is not applying why? Even default admin pannel is not get its style

    • @CloudWithDjango
      @CloudWithDjango  8 місяців тому +1

      Hi,
      You need to set your static files with white noise or Amazon S3. Please refer to the pinned comment.

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

    Thank you! I deployed my first django app😢....

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

      My pleasure! :)
      I'm happy to hear that you managed to get your project deployed!

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

    Thanks for this video. Please when using the new database settings in my existing project, my previous django-admin is no longer available.

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

      My pleasure. Yes, it won't be available since we are changing our database. Wherever you create you store - according to the current database

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

    I've a problem.Could you tell me How to solve it ? " ERROR: Ignored the following versions that require a different python version: 1.9.5 Requires-Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*,

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

      Hi,
      Please remove pywin32 from your requirements.txt file.
      I would suggest only using the packages that are present in the video tutorial, and keeping it at a minimum (as shown at 30:21)

    • @lehuy2393
      @lehuy2393 11 місяців тому

      @@CloudWithDjango But when I remove pywin32 , i got problem "ERROR: Command errored out with exit status 1: /opt/render/project/src/.venv/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yg60n85e/pyyaml_2fd24514e0f44f2baba7a97a61d2d597/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yg60n85e/pyyaml_2fd24514e0f44f2baba7a97a61d2d597/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'
      '"'"', '"'"'
      '"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-z_2okweo/install-record.txt --single-version-externally-managed --compile --install-headers /opt/render/project/src/.venv/include/site/python3.9/PyYAML Check the logs for full command output.
      "

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому

      Hi,
      It would seem that you have a larger problem at hand with your application.
      Please rather for your first time deploy a simple application that doesn't have too many complexities.

  • @siddharth.chandani
    @siddharth.chandani 7 місяців тому

    Hello.. I'm getting internal server error 500 when debug is set to False and when debug =True, application is working fine... Is there any way to fix that?

    • @CloudWithDjango
      @CloudWithDjango  7 місяців тому

      Hi,
      I'd suggest, checking server logs for detailed error messages, then ensure correct configurations, permissions, and dependencies while updating outdated components and implementing custom error handling within your application.

  • @sogolsaadat2488
    @sogolsaadat2488 3 місяці тому

    Hi, i’m using an external postgres database and when I run migrations and collect static along with pip install… requirement.txt I get connection error but when i run the build command without migration and collect static, it successfully deploys the app but I get server error 500 in some pages. My application runs perfectly locally with production settings. I have checked the port and there is no mismatch. It is 5432.

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому +1

      Hi, please ensure that the database connection settings in your deployment environment match your local production settings, and verify that the database is accessible during the migration and static file collection processes. The server error 500 may indicate an issue with the database connection or missing static files that need to be addressed during deployment.

    • @sogolsaadat2488
      @sogolsaadat2488 3 місяці тому

      @@CloudWithDjango Thank you for replying! I ended up creating the Postgres database from render and load my data into it, just followed your video and I was able to successfully deploy my app.
      I only have problem with images, now watching your video on Cloudinary to hopefully fix that issue.
      Your videos are very helpful! Thank you!

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому +1

      My pleasure! Glad to hear that you managed in the end!
      I'd suggest rather watching my S3 video on image management here:
      ua-cam.com/video/JQVQcNN0cXE/v-deo.html
      Might be a better solution for you!
      Of course, it's a pleasure! Thank you for your support and for watching! Good luck!

    • @sogolsaadat2488
      @sogolsaadat2488 3 місяці тому

      @@CloudWithDjango Thank you so much for this. I was indecisive between Cloudinary and AWS. I read your comment and decided to use AWS s3. Followed your video step by step and it’s done. It was so simple to follow. Wouldn’t be able to do it without your videos!!!

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому +1

      My pleasure! Yes, it certainly can be difficult to decide between the two. Yes, while Cloudinary is a good choice, AWS S3 is more seamless in my opinion. Glad that you managed to get things working with the tutorial and that you found it simple! Thank you so much for your kind words! All the best!

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

    Great video as always. Thank you.

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

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

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

      No problem!
      Please first make sure that your application works locally, and then please double check your settings with the gunicorn configuration.

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

    Useful , could you please upload decorate in django?

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

      Hi,
      Thank you for the suggestion. If I have time, I can maybe look.

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

    Successful deployed thank you bro

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

    Arno hi, What is the actual solution of admin page styling? the one to run the command collect static?
    And if is that how i can a run a command on render?

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

      Hi,
      The easiest solution would be to integrate Amazon S3 before deploying your application and run python manage.py collectstatic then before you deploy to Render.
      I'm not too sure of how you would run it on render. But yes that is the correct command nonetheless.

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

      @@CloudWithDjango thank you very much.

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

      My pleasure!

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

    There is an error. The DATABASE_URL is not being read for some reason by the env('DATABASE_URL')
    A fix for this:
    In the base directory, in the command line run the following:
    set DATABASE_URL =

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

      Hi,
      You need to make sure that you have configured your python interpreter correctly in VS Code for django environ to be recognized.
      But yes, this is an alternative. Thank you for suggesting it.

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

      @@CloudWithDjango also one more issue. I want to only server the static files that came default with django such as the admin page and stuff. How can we do that? Do we need to use AWS for that as well? Or can we do it without AWS?

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

    Hello Can you make video with only static files and without database. I'm struggling rn I'm following your steps and my application is now live but it only shows EOF. What this mean?

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

      Hi,
      Please see the timestamps in the description below. I mention a solution here. The EOF file error can be either because your application is too large, you need more compute power, or there is a problem in your requirements.txt file or within your application.
      Regarding your database question. You can just ignore that section and leave it out. If you don't have a database then you don't need to put in database configuration settings.
      I'd advise you to deploy a small and simple application first before attempting other projects.

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

      @@CloudWithDjango my first project is image background removal 😅😅

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

      @@CloudWithDjango I guess this project is too large but anyway thank you so much 😄👍

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

      @@janing06 Yes, unfortunately, you will be limited by size if you want to go free.... haha! It you upgrade you shouldn't have a problem. My pleasure! All the best :)

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

      @@CloudWithDjango by the way I make a simple app just a navbar and it work but css is not working what is the simplest way to apply it?

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

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

    • @DeanWinchester-qs1ck
      @DeanWinchester-qs1ck 5 місяців тому

      Hey there! I have the same issue, did u manage to solve it?

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

    how to fix this ERROR: No matching distribution found for tensorflow-intel==2.8.0

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

      Hi,
      Whenever you deploy an application you need to be careful with your packages. It is simply a trial and error process that only you can figure out.
      Therefore, I'd recommend changing your package versions accordingly and then taking a look at what works and what doesn't
      Good luck!

  • @siddharth.chandani
    @siddharth.chandani 7 місяців тому

    Can we serve static files using whitenoise instead of S3 bucket?

    • @CloudWithDjango
      @CloudWithDjango  7 місяців тому +1

      Hi,
      Yes, I have a video on the channel for this.

    • @siddharth.chandani
      @siddharth.chandani 7 місяців тому

      @@CloudWithDjango Oh great!
      I must say that you are among the very few creators who actually respond to all queries of the viewer. One day you will be in the top creators in youtube. My best wishes are with you.😊

    • @CloudWithDjango
      @CloudWithDjango  7 місяців тому +1

      Thank you, that's nice of you to say! I really appreciate the best wishes and all the support! Happy learning and all the best to you! :)

    • @siddharth.chandani
      @siddharth.chandani 7 місяців тому

      @@CloudWithDjango One more thing i want to ask.. I'm getting internal server error 500 when debug is set to False and when debug =True, application is working fine... Is there any way to fix that?

    • @CloudWithDjango
      @CloudWithDjango  7 місяців тому

      Hi,
      The internal server error 500 when debug is set to False typically indicates an issue in production settings; you can debug by checking your logs, ensuring proper error handling, and verifying all necessary configurations are in place.

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

    raise ImproperlyConfigured(error_msg) from exc
    django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable .i got this error sir, help me pls.

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

      Hi,
      Please ensure that you setup your environment variables correctly (make sure that you don't have spaces, that you turn off your server whilst you setup your env variables, and that you associate the credentials correctly).
      These are the reasons for it.

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

      You were right sir, that was my error. Thank you. I've been fixing again an error says server error 500 when adding data to database.

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

    Hey, I ran into a little and would appreciate your help. I followed your video exactly. However, after render deployed my project. I am seeing a blank page stating 'Not Found'.
    Do you have idea of what it might be ?

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

      Hi,
      Thank you for reaching out, and for your question.
      It takes time after the deployment says it was a success. After doing the process you need to wait for a while for everything to setup correctly behind the scenes. I usually wait 10 - 15 minutes.
      So, basically a good rule of thumb - If Render shows your website is live, you still need to wait for a while afterwards and not open the link or interfere with it. For a while.
      Please also check your python version a newer version like 3.11.1 may cause problems as well.

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

      ​@@CloudWithDjango wow thanks alot for your prompt response. I did use Python 3.10.6 as stated in the video.
      I have been click and interfering with it for a while now since it said live. So I am just going to wait a bit more as you stated here

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

      @@wx270 Yes, that python version works well. My pleasure!
      Yes, I'd recommend just waiting a bit. If you see it still doesn't work after waiting for sometime. I'd then suggest re-creating your Web service, and following the process again, but this time without opening the link too early.
      Additionally, I'd also limit your packages for your first deployment, just to ensure that it's not an incompatible package version causing the issue.

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

      @@CloudWithDjango Good morning, so I waited and eventually had to redeployed the web service as you stated. This time is showed “Sever Error 500”.
      None the less, I tried to navigate to other areas of my app and realized the styling wasn’t showing but I could see the text.
      Is this due to my static files?

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

      @@wx270 Hi,
      Thank you for the detail.
      Yes, this is a possible reason for the failure, since I don't cover static files In this tutorial. You would need to use Amazon S3 or Cloudinary for that and not Render for the live server.

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

    what to do if already have existing database

  • @0070-k2d
    @0070-k2d 7 місяців тому

    Hi sir my project successfully deployed but it don't shows the static files on the live server
    pease help on this issue

    • @CloudWithDjango
      @CloudWithDjango  7 місяців тому

      Hi,
      Please kindly read the pinned comment for further information

  • @MdSuhailKhan-f3x
    @MdSuhailKhan-f3x 11 місяців тому

    ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,=3.7,=3.7,=3.7,=3.7,

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому

      Hi,
      Please use the same packages that are demonstrated in the video to ensure that you don't run into errors for your first deployment.

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

    Hello, can render host a Django Channels application?

  • @zaniolotimur
    @zaniolotimur 11 місяців тому

    u are perfect ty for thi clear presentation

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

    So in the long term the Render Database is not free?

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

      Hi,
      If you have a growing application, with many users, and you want your database to run continuously. Then yes, you will need to pay eventually for the resource usage and extended up-time.
      You can score on the free tier usage for a certain amount of time, but you will be limited. This goes for all platforms and services.

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

    can you please help me i have hosted everything correctly but when i upload my image the database is showing my image path but how to retrieve or access that image ? where can i get that image ?

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

      Hi,
      For images you may need to host it externally, such as with Amazon S3 or Cloudinary. This will make things a lot easier for you.

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

      @@CloudWithDjango thanks is that free or paid ? do you have videos for that ?

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

      @@CloudWithDjango means that this render cloud cannot host images or what is it possible to make video on this ?

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

    It is really helpful! thank you sir.

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

      Of course, my pleasure! Glad that it was useful to you!

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

    Very informative video!

  • @no---on
    @no---on Рік тому

    I am not able configure my static and media files plz help!

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

      Hi,
      Please read the pinned comment for more information.

  • @BruceKamugisha
    @BruceKamugisha 7 місяців тому

    why is it saying my gunicorn command is not found

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

    Hi it gives me the error when it tries to read the env database variable
    django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable

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

      Hi,
      Please make sure that you have configured the python interpreter correctly, that your database url is still valid, and that you referenced your database url correctly.
      The error says that there is no DATABASE_URL environment variable set correctly, so you need to make sure that it exists in your .env file and that everything is precise.
      I would also suggest that you keep your server turned off, until you have set everything up, since your server will show confusing errors.

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

      @@CloudWithDjango Thanks for your fast response. The mistake was that in .env file i was leaving a space between variable and value.
      you need to put it exactly like that DATABASE_URL=mydatabaseurl with out any space.

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

      Hi,
      No worries at all. Yes, unfortunately you need to be very precise in the regard.
      All the best!

  • @dave_eke
    @dave_eke 7 місяців тому

    Hello I developed a server 500 error pls how can I fix it

    • @CloudWithDjango
      @CloudWithDjango  7 місяців тому

      Hi,
      Please ensure that your application works locally without issues. This is the reason for the 500 error.

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

    perfect tutorial THANK YOU 🤟

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

      Thank you very much!
      It is a pleasure, Omkar! :)

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

      @@CloudWithDjango it is showing an error saying -could not translate host name to address: Name or service not known how t fix this

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

    please , l followed all the steps but there is a problem l cant configure static and media files, how to do it in render

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

      Hi,
      Yes, this is expected and I mention a solution to this at the end of the video. There is a video tutorial on how to configure your static files with amazon s3 in the description of the video.

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

      @@CloudWithDjango static files were fixed by whitenoise but there is a problem on media files

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

    Life saver 🔥🔥 but .. how come the django static files were not served for me can you please help

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

      Thank you! I'm glad that it helped you!
      Please see the list of timestamps in the description. I give a solution to this.
      Good luck!

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

    planetscale is very good

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

    Muchas gracias!!!

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

    How to use existing postgres database?

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

      Hi,
      If you already have an existing postgres database. I'd suggest reading more in the docs about this. Here are two links to give you some guidance:
      community.render.com/t/connecting-to-a-external-postgresql-database/6488
      render.com/docs/databases

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

      @@CloudWithDjango hello my database is in localhost

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

      Hi,
      If you are using the default SQlite database that Django gives you. It should automatically be configured by default within your application. So, you don't need to do anything else. All you need to do is deploy your application like normal to Render and ignore the PostgreSQL part.

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

    Hello, do you have a tutorial about deploying drf + MySQL for Free also? thank you.

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

      Hi,
      Thank you for your question.
      Unfortunately, I haven't got a tutorial on that.

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

      @@CloudWithDjango will you be making on that one? Waiting for it, if there is. Thank you. or what hosting website would you suggest? thank you.

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

      @@brylontoc6140 I appreciate your interest, but unfortunately I have a lot of tutorials to do, so it might be a long wait.
      So, I'd suggest watching another tutorial. I can't speak for drf, but last I checked you should be able to provision a MySql database with Railway.

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

      @@CloudWithDjango okay thank you very much sir. Appreciated for your response. 🙏

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

      @@brylontoc6140 My problem at all.
      All the best with your project!

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

    Thanks! Very useful!

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

    Thanks for this!

  • @MdSuhailKhan-f3x
    @MdSuhailKhan-f3x 11 місяців тому

    Very much helpful

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

    Thank you!!

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

    How can we include celery

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

      Hi,
      I have a video on my channel that deals with celery.
      Hopefully that can give you some further insight.
      Good luck!

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

      @@CloudWithDjango Thank you I'll check it out

  • @aceworks007
    @aceworks007 11 місяців тому

    How many days access this site?

    • @aceworks007
      @aceworks007 11 місяців тому

      If expire free service after 3months?.

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому

      HI,
      You would need to check the free tier usage restriction. But yes, on the free tier your site will eventually run out of usage.

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

    Thanks!

  • @noufianazir3780
    @noufianazir3780 8 місяців тому

    Got not found after deploying

    • @CloudWithDjango
      @CloudWithDjango  8 місяців тому

      Hi, please check that your application is error-free upon deployment before kindly re-deploying

    • @noufianazir3780
      @noufianazir3780 8 місяців тому +1

      Ok

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

    looks very well thanks for this hack :D

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

    Very good

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

    Hi,
    I followed you steps, but it required Credit Card, but yours did not.
    Why does it different?
    Are you cheating us or things have changed in Render?
    It just 4 days ago you published this video.
    Pleas advise ...
    Thanks

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

      Hi,
      This is a completely dishonest and an unnecessary accusation to insinuate. It is free. There is no reason for you to add a credit card. Nothing has changed in Render.
      If you want to put a credit card on file you can (which wasn't in my tutorial at all), but it's optional until you start making use of priced services.
      As you can see in the link below and in the video it explicitly states the free tier being $0.
      render.com/pricing
      So, even if you did put a credit card on file, all the services that I chose are part of the Free tier as clearly shown in the video, so you won't get charged.
      Everything is explained in the video meticulously. Hence, the reason for it being so long.
      I also mention in the video that you will be limited by resources.

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

    good

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

    hello! I have a error. How can I update pip? Jun 4 02:43:19 PM [notice] A new release of pip available: 22.2.1 -> 23.1.2
    Jun 4 02:43:19 PM [notice] To update, run: pip install --upgrade pip
    Jun 4 02:43:20 PM ==> Build failed 😞

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

      Hi Jane,
      Please ensure that you don't include pip in your requirements.txt file. You shouldn't have this problem then.

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

    Thank you very much!

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

    Thank you so much!

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

    Thank you very much!