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

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

Поделиться
HTML-код
  • Опубликовано: 15 авг 2024
  • Deploy a Django web app to a Render live server with PostgreSQL
    Important links:
    Render - render.com/
    Github - github.com/
    Important packages:
    pypi.org/proje...
    pypi.org/proje...
    pypi.org/proje...
    pypi.org/proje...
    Deploying static/media files:
    • Configure AWS S3 for s...
    • Static files and image...
    Solve Admin styling problem:
    stackoverflow....
    🪧| Video timestamps:
    0:00 - Intro
    0:05 - Register for a Render account
    5:07 - Create a PostgreSQL database on Render
    8:19 - Installing important packages
    15:29 - Configure our database settings
    25:36 - Testing our admin user
    27:43 - Important deployment configurations
    31:25 - Deploying to Render
    43:10 - (Bonus) - Static/media files + admin page styling
    44:40 - Add a custom domain name
    🧑‍🏫 | Courses:
    www.cloudwithd...
    📑 | Blog:
    www.cloudwithd...
    📢 | Coaching:
    / coaching
    💼| Join the Slack community:
    cloudwithdjang...
    ❤️ | Support:
    www.paypal.com...

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

  • @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:
    ruclips.net/video/JQVQcNN0cXE/видео.html

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

    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!

  • @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

  • @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

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

    Great video as always. Thank you.

  • @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

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

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

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

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

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

    Truly amazing tutorials. Thank you so much for sharing.

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

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

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

    It is really helpful! thank you sir.

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

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

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

    Successful deployed thank you bro

  • @andr9465
    @andr9465 9 месяцев назад +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  8 месяцев назад +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 Месяц назад

      ​@@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 Месяц назад

      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!

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

    u are perfect ty for thi clear presentation

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

    Very informative video!

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

    Thanks! Very useful!

  • @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

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

    Thanks for this!

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

    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.

  • @user-nk3gu5rv9w
    @user-nk3gu5rv9w 7 месяцев назад

    Very much helpful

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

    Thank you very much!

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

    looks very well thanks for this hack :D

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

    Thank you so much!

  • @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!

  • @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?

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

    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  10 месяцев назад

      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 9 месяцев назад

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

  • @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

  • @user-nk3gu5rv9w
    @user-nk3gu5rv9w 7 месяцев назад

    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  7 месяцев назад

      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.

  • @siddharth.chandani
    @siddharth.chandani 3 месяца назад

    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  3 месяца назад

      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.

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

    Muchas gracias!!!

  • @sogolsaadat2488
    @sogolsaadat2488 6 дней назад

    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  6 дней назад +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 4 дня назад

      @@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  4 дня назад +1

      My pleasure! Glad to hear that you managed in the end!
      I'd suggest rather watching my S3 video on image management here:
      ruclips.net/video/JQVQcNN0cXE/видео.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!

  • @user-nh4xn2fq8b
    @user-nh4xn2fq8b 4 месяца назад

    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  4 месяца назад

      Hi,
      Please kindly read the pinned comment for further information

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

    Thank you!!

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

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

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

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

  • @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!

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

    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  2 месяца назад +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

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

    Thanks!

  • @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?

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

    Very good

  • @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.

  • @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!

  • @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.

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

    what to do if already have existing database

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

    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  2 месяца назад

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

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

      @@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  2 месяца назад

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

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

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

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

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

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

    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.

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

    planetscale is very good

  • @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?

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

    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.

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

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

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

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

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

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

  • @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!

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

    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  8 месяцев назад

      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 8 месяцев назад

      @@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  8 месяцев назад

      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.

  • @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.

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

    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  8 месяцев назад

      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 8 месяцев назад

      @@CloudWithDjango thank you very much.

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

      My pleasure!

  • @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.

  • @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.

  • @BruceKamugisha
    @BruceKamugisha 3 месяца назад

    why is it saying my gunicorn command is not found

  • @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 ?

  • @siddharth.chandani
    @siddharth.chandani 3 месяца назад

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

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

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

    • @siddharth.chandani
      @siddharth.chandani 3 месяца назад

      @@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  3 месяца назад +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 3 месяца назад

      @@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  3 месяца назад

      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.

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

    Hello, can render host a Django Channels application?

  • @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 Год назад

    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.

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

    Got not found after deploying

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

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

    • @noufianazir3780
      @noufianazir3780 4 месяца назад +1

      Ok

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

    How can we include celery

  • @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!

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

    How many days access this site?

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

      If expire free service after 3months?.

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

      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.

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

    good

  • @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.

  • @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!

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

    Thank you very much!