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

  Рет қаралды 26,828

Cloud With Django

Cloud With Django

Күн бұрын

Deploy a Django web app to a Render live server with PostgreSQL
Important links:
Render - render.com/
Github - github.com/
Important packages:
pypi.org/project/psycopg2-bin...
pypi.org/project/dj-database-...
pypi.org/project/django-environ/
pypi.org/project/gunicorn/
Deploying static/media files:
• Configure AWS S3 for s...
• Static files and image...
Solve Admin styling problem:
stackoverflow.com/questions/6...
🪧| 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.cloudwithdjango.com/courses
📑 | Blog:
www.cloudwithdjango.com/blog/
📢 | Coaching:
/ coaching
💼| Join the Slack community:
cloudwithdjango.slack.com/joi...
❤️ | Support:
www.paypal.com/donate/?hosted...

Пікірлер: 184
@CloudWithDjango
@CloudWithDjango Жыл бұрын
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: kzfaq.info/get/bejne/gLeGhMZ_s5bHiHk.html
@cotechlevy6368
@cotechlevy6368 Жыл бұрын
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!
@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 Жыл бұрын
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
@luandesouza450
@luandesouza450 Жыл бұрын
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 Жыл бұрын
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
@adrianmin713
@adrianmin713 6 ай бұрын
Truly amazing tutorials. Thank you so much for sharing.
@CloudWithDjango
@CloudWithDjango 6 ай бұрын
Thank you so much! I appreciate you taking time to watch them!
@user-qn5js5te4x
@user-qn5js5te4x 5 ай бұрын
you really did a great job on this tutorial , just what i was looking for. Thankyou
@CloudWithDjango
@CloudWithDjango 5 ай бұрын
Thank you so much! It is a great pleasure! I wish you all the best in you development journey!
@miryamstar
@miryamstar Ай бұрын
Great video as always. Thank you.
@CloudWithDjango
@CloudWithDjango Ай бұрын
Thank you! Of course, my pleasure!
@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 Жыл бұрын
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
@michasar2422
@michasar2422 Жыл бұрын
Thanks! Very useful!
@abunaim9624
@abunaim9624 2 ай бұрын
It is really helpful! thank you sir.
@CloudWithDjango
@CloudWithDjango 2 ай бұрын
Of course, my pleasure! Glad that it was useful to you!
@ajp1732
@ajp1732 Жыл бұрын
Thanks for this!
@LegionLeague
@LegionLeague Жыл бұрын
What am amazing tutorial! Thank you, sir! After Heroku's free tier demise I've been stuck in limbo trying to figure out a replacement, but eventually just got overwhelmed. Now I'm definitely going to try Render and watch some other deployment videos from your channel. Quick questions though: it would be nice if you mentioned some basic limitation of the free plan, e.g. does your app sleep every 30 min? Is there uptime hours limit (like the dynos on Heroku)?
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Thank you. I'm glad that it was of value to you. I appreciate your interest in my channel. Yee, definitely Heroku is gone so we have to look for a good alternative. Yes, I did briefly go over the plans in the video itself, but if you would like additional detail on pricing plans and limitations... Please check out the link below: render.com/pricing This link will better assist you in answering your questions. All the best,
@gogaboga8809
@gogaboga8809 Жыл бұрын
Very informative video!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Thank you!
@YouTub476
@YouTub476 Жыл бұрын
Successful deployed thank you bro
@CloudWithDjango
@CloudWithDjango Жыл бұрын
My pleasure! :)
@zaniolotimur
@zaniolotimur 7 ай бұрын
u are perfect ty for thi clear presentation
@CloudWithDjango
@CloudWithDjango 7 ай бұрын
Thank you so much! :)
@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
@thevitorcampos
@thevitorcampos Жыл бұрын
Thank you very much!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
You're welcome!
@alejandroriosmunoz8100
@alejandroriosmunoz8100 Жыл бұрын
Thank you so much!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
My pleasure! :)
@razorhxh7371
@razorhxh7371 10 ай бұрын
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
@CloudWithDjango
@CloudWithDjango 7 ай бұрын
Thank you!
@mlsandreas
@mlsandreas Жыл бұрын
Thank you!!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
My pleasure, Andreas!
@gonzalosanchez8412
@gonzalosanchez8412 8 ай бұрын
Muchas gracias!!!
@CloudWithDjango
@CloudWithDjango 8 ай бұрын
Mi placer!
@ahmadumar6210
@ahmadumar6210 Жыл бұрын
looks very well thanks for this hack :D
@CloudWithDjango
@CloudWithDjango Жыл бұрын
My pleasure! I'm glad that you like it!
@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?
@Coden69
@Coden69 Жыл бұрын
Very good
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Thank you!
@inteliconn995
@inteliconn995 Жыл бұрын
Thanks!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Pleasure!
@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
@MrValVet
@MrValVet 9 ай бұрын
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 9 ай бұрын
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.
@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 Жыл бұрын
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!
@janing06
@janing06 Жыл бұрын
what to do if already have existing database
@orcofficialyoutube
@orcofficialyoutube Жыл бұрын
Thank you! I deployed my first django app😢....
@CloudWithDjango
@CloudWithDjango Жыл бұрын
My pleasure! :) I'm happy to hear that you managed to get your project deployed!
@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 ай бұрын
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 4 ай бұрын
My css is not applying why? Even default admin pannel is not get its style
@CloudWithDjango
@CloudWithDjango 4 ай бұрын
Hi, You need to set your static files with white noise or Amazon S3. Please refer to the pinned comment.
@blessycheriyan5870
@blessycheriyan5870 Жыл бұрын
Useful , could you please upload decorate in django?
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Hi, Thank you for the suggestion. If I have time, I can maybe look.
@andr9465
@andr9465 8 ай бұрын
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 ай бұрын
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!
@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.
@user-nh4xn2fq8b
@user-nh4xn2fq8b 3 ай бұрын
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 3 ай бұрын
Hi, Please kindly read the pinned comment for further information
@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.
@wordwonders365
@wordwonders365 Жыл бұрын
Hello, can render host a Django Channels application?
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Hi, You would need to check via trial and error.
@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!
@aswink7701
@aswink7701 9 ай бұрын
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 Ай бұрын
Hey there! I have the same issue, did u manage to solve it?
@enz1222
@enz1222 Жыл бұрын
Life saver 🔥🔥 but .. how come the django static files were not served for me can you please help
@CloudWithDjango
@CloudWithDjango Жыл бұрын
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!
@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.
@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!
@diegodreossi1458
@diegodreossi1458 Жыл бұрын
So in the long term the Render Database is not free?
@CloudWithDjango
@CloudWithDjango Жыл бұрын
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.
@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?
@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!
@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.
@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 ?
@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 ай бұрын
Can we serve static files using whitenoise instead of S3 bucket?
@CloudWithDjango
@CloudWithDjango 3 ай бұрын
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 ай бұрын
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.
@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 Жыл бұрын
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.
@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 Жыл бұрын
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 Жыл бұрын
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.
@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
@lehuy2393
@lehuy2393 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
@@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 7 ай бұрын
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.
@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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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 Жыл бұрын
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 Жыл бұрын
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?
@dave_eke
@dave_eke 3 ай бұрын
Hello I developed a server 500 error pls how can I fix it
@CloudWithDjango
@CloudWithDjango 3 ай бұрын
Hi, Please ensure that your application works locally without issues. This is the reason for the 500 error.
@BruceKamugisha
@BruceKamugisha 3 ай бұрын
why is it saying my gunicorn command is not found
@CloudWithDjango
@CloudWithDjango 3 ай бұрын
Hi please double check your command.
@gigachad9110
@gigachad9110 Жыл бұрын
planetscale is very good
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Thank you for your input
@brylontoc6140
@brylontoc6140 Жыл бұрын
Hello, do you have a tutorial about deploying drf + MySQL for Free also? thank you.
@CloudWithDjango
@CloudWithDjango Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@brylontoc6140 My problem at all. All the best with your project!
@jhoncabrera2369
@jhoncabrera2369 Жыл бұрын
good
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Thank you! :)
@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.
@brawlboy1382
@brawlboy1382 Жыл бұрын
How can we include celery
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Hi, I have a video on my channel that deals with celery. Hopefully that can give you some further insight. Good luck!
@brawlboy1382
@brawlboy1382 Жыл бұрын
@@CloudWithDjango Thank you I'll check it out
@aceworks783
@aceworks783 7 ай бұрын
How many days access this site?
@aceworks783
@aceworks783 7 ай бұрын
If expire free service after 3months?.
@CloudWithDjango
@CloudWithDjango 7 ай бұрын
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.
@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 ай бұрын
Ok
@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!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
My pleasure!
Deploy a Django web app with Nginx to Amazon EC2
35:26
Cloud With Django
Рет қаралды 40 М.
How to Deploy a Django App and Postgres Database to Render
20:14
Pretty Printed
Рет қаралды 30 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 28 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 67 МЛН
Modernise the Django admin UI with Unfold
6:44
Cloud With Django
Рет қаралды 4 М.
Dockerizing Django with Postgres, Redis and Celery
20:59
Developer Timeline
Рет қаралды 14 М.
Web Server Concepts and Examples
19:40
WebConcepts
Рет қаралды 236 М.
Deploy a Django Web App to Amazon EC2 Instance  | 2024
16:26
THE PROTON GUY
Рет қаралды 11 М.
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 90 М.
Microservices explained - the What, Why and How?
18:30
TechWorld with Nana
Рет қаралды 833 М.
Deploy Django app to Railway
15:49
Andreas Jud
Рет қаралды 3,6 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН