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
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.
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!
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.
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
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..
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
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.
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
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?
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!
@@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!
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!
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!
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.
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?
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.
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!
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 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.
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.
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
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.*,
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)
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.
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?
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.
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.
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.
@@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!
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!
@@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!!!
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!
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?
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.
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 =
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.
@@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?
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?
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 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 :)
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.
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!
@@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 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?
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.
raise ImproperlyConfigured(error_msg) from exc django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable .i got this error sir, help me pls.
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.
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 ?
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.
@@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
@@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.
@@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?
@@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.
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.
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 ?
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
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.
@@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.
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.
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
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 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.
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
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.
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 😞
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
I'm gonna recommend this video to my fellow Django devs. Good job! Kindly keep us posted on these Django tutorials.🔥
Hi,
Thank you for your feedback and for sharing my video tutorial. I appreciate it.
Of course, lots more to come :)
All the best!
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.
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!
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.
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
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..
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
@@CloudWithDjango Welcome & carry on
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.
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
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?
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!
@@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!
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!
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!
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.
@@CloudWithDjango Thanks, I finally made it work by using 2 services, one for the server and another for qcluster.
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?
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.
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!
you really did a great job on this tutorial , just what i was looking for. Thankyou
Thank you so much! It is a great pleasure!
I wish you all the best in you development journey!
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'
Please ensure that you are referring to your projects wsgi in your settings.py file.
@@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.
No worries! Glad to hear that you got it working!
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.
Truly amazing tutorials. Thank you so much for sharing.
Thank you so much! I appreciate you taking time to watch them!
Do you know why I lose my data stored in the database each time i reload the page or deploy a last commit?
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
My css is not applying why? Even default admin pannel is not get its style
Hi,
You need to set your static files with white noise or Amazon S3. Please refer to the pinned comment.
Thank you! I deployed my first django app😢....
My pleasure! :)
I'm happy to hear that you managed to get your project deployed!
Thanks for this video. Please when using the new database settings in my existing project, my previous django-admin is no longer available.
My pleasure. Yes, it won't be available since we are changing our database. Wherever you create you store - according to the current database
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.*,
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)
@@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.
"
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.
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?
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.
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.
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.
@@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!
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!
@@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!!!
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!
Great video as always. Thank you.
Thank you! Of course, my pleasure!
Thanks for the video, but everytime i try, render give the error "ModuleNotFoundError: No module named 'nameofmyapp.wsgi' ". Can you help me?
No problem!
Please first make sure that your application works locally, and then please double check your settings with the gunicorn configuration.
Useful , could you please upload decorate in django?
Hi,
Thank you for the suggestion. If I have time, I can maybe look.
Successful deployed thank you bro
My pleasure! :)
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?
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.
@@CloudWithDjango thank you very much.
My pleasure!
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 =
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.
@@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?
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?
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.
@@CloudWithDjango my first project is image background removal 😅😅
@@CloudWithDjango I guess this project is too large but anyway thank you so much 😄👍
@@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 :)
@@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?
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.
Hey there! I have the same issue, did u manage to solve it?
how to fix this ERROR: No matching distribution found for tensorflow-intel==2.8.0
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!
Can we serve static files using whitenoise instead of S3 bucket?
Hi,
Yes, I have a video on the channel for this.
@@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.😊
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! :)
@@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?
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.
raise ImproperlyConfigured(error_msg) from exc
django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable .i got this error sir, help me pls.
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.
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.
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 ?
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.
@@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
@@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.
@@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?
@@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.
what to do if already have existing database
Hi sir my project successfully deployed but it don't shows the static files on the live server
pease help on this issue
Hi,
Please kindly read the pinned comment for further information
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,
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.
Hello, can render host a Django Channels application?
Hi,
You would need to check via trial and error.
u are perfect ty for thi clear presentation
Thank you so much! :)
So in the long term the Render Database is not free?
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.
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 ?
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.
@@CloudWithDjango thanks is that free or paid ? do you have videos for that ?
@@CloudWithDjango means that this render cloud cannot host images or what is it possible to make video on this ?
It is really helpful! thank you sir.
Of course, my pleasure! Glad that it was useful to you!
Very informative video!
Thank you!
I am not able configure my static and media files plz help!
Hi,
Please read the pinned comment for more information.
why is it saying my gunicorn command is not found
Hi please double check your command.
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
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.
@@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.
Hi,
No worries at all. Yes, unfortunately you need to be very precise in the regard.
All the best!
Hello I developed a server 500 error pls how can I fix it
Hi,
Please ensure that your application works locally without issues. This is the reason for the 500 error.
perfect tutorial THANK YOU 🤟
Thank you very much!
It is a pleasure, Omkar! :)
@@CloudWithDjango it is showing an error saying -could not translate host name to address: Name or service not known how t fix this
please , l followed all the steps but there is a problem l cant configure static and media files, how to do it in render
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.
@@CloudWithDjango static files were fixed by whitenoise but there is a problem on media files
Life saver 🔥🔥 but .. how come the django static files were not served for me can you please help
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!
planetscale is very good
Thank you for your input
Muchas gracias!!!
Mi placer!
How to use existing postgres database?
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
@@CloudWithDjango hello my database is in localhost
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.
Hello, do you have a tutorial about deploying drf + MySQL for Free also? thank you.
Hi,
Thank you for your question.
Unfortunately, I haven't got a tutorial on that.
@@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.
@@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.
@@CloudWithDjango okay thank you very much sir. Appreciated for your response. 🙏
@@brylontoc6140 My problem at all.
All the best with your project!
Thanks! Very useful!
Thanks for this!
Very much helpful
Thank you!
Thank you!!
My pleasure, Andreas!
How can we include celery
Hi,
I have a video on my channel that deals with celery.
Hopefully that can give you some further insight.
Good luck!
@@CloudWithDjango Thank you I'll check it out
How many days access this site?
If expire free service after 3months?.
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.
Thanks!
Pleasure!
Got not found after deploying
Hi, please check that your application is error-free upon deployment before kindly re-deploying
Ok
looks very well thanks for this hack :D
My pleasure! I'm glad that you like it!
Very good
Thank you!
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
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.
good
Thank you! :)
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 😞
Hi Jane,
Please ensure that you don't include pip in your requirements.txt file. You shouldn't have this problem then.
Thank you very much!
My pleasure!
Thank you so much!
My pleasure! :)
Thank you very much!
You're welcome!