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

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

Cloud With Django

1 год назад

29,754 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@janing06
@janing06 - 03.04.2023 08:38

what to do if already have existing database

Ответить
@IdrissKourb
@IdrissKourb - 03.04.2023 17:53

Hello,
When i deploy i get this error:

==> Starting service with 'gunicorn jskanbanproject.wsgi:application'
Apr 3 06:52:13 PM bash: gunicorn: command not found

Failed
Exited with status 127 while running your code.

(And Render don't accept django version 4.1.7 or 4.1.6, so i set the 3.2.18 version in requirements.txt)

Ответить
@ahmedzakaria3742
@ahmedzakaria3742 - 16.04.2023 20:37

Thank you very much!

Ответить
@ahmedzakaria3742
@ahmedzakaria3742 - 16.04.2023 20:46

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.

Ответить
@dell4559
@dell4559 - 23.04.2023 06:25

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 ?

Ответить
@brawlboy1382
@brawlboy1382 - 14.05.2023 15:02

How can we include celery

Ответить
@ritik1857
@ritik1857 - 31.05.2023 23:52

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 = <your url goes here without the symbol>

Ответить
@prapathsuayroop2341
@prapathsuayroop2341 - 01.06.2023 11:21

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.

Ответить
@no---on
@no---on - 02.06.2023 16:01

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

Ответить
@janesroomm
@janesroomm - 04.06.2023 12:09

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 😞

Ответить
@user-9bk
@user-9bk - 07.06.2023 22:46

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

Ответить
@YouTub476
@YouTub476 - 19.06.2023 16:03

Successful deployed thank you bro

Ответить
@janing06
@janing06 - 30.06.2023 11:40

How to use existing postgres database?

Ответить
@akokkalis1
@akokkalis1 - 30.06.2023 16:52

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

Ответить
@alejandroriosmunoz8100
@alejandroriosmunoz8100 - 07.07.2023 08:51

Thank you so much!

Ответить
@omkarkhandekar8211
@omkarkhandekar8211 - 09.07.2023 20:48

perfect tutorial THANK YOU 🤟

Ответить
@gogaboga8809
@gogaboga8809 - 18.07.2023 20:15

Very informative video!

Ответить
@balitaktakaneveryday7017
@balitaktakaneveryday7017 - 25.07.2023 16:41

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

Ответить
@orcofficialyoutube
@orcofficialyoutube - 28.07.2023 13:45

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

Ответить
@diegodreossi1458
@diegodreossi1458 - 01.08.2023 17:21

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

Ответить
@thevitorcampos
@thevitorcampos - 04.08.2023 19:48

Thank you very much!

Ответить
@pedroaugusto5995
@pedroaugusto5995 - 31.08.2023 21:44

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

Ответить
@harshithnambaru3909
@harshithnambaru3909 - 09.09.2023 22:41

Bro iam sruck with this error bro

django.core.exceptions.AppRegistryNotReady :apps aren't loaded yet.

Bro iam deploying my chat application with redis iam stuck with many errors bro could you plzz help me with it

Also Iam a member of googledevolopersrudentclub ....I reccomended my team to watch your channel but they also stuck with similar errors

Ответить
@razorhxh7371
@razorhxh7371 - 13.09.2023 17:38

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.

Ответить
@MrValVet
@MrValVet - 09.10.2023 11:04

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!

Ответить
@aswink7701
@aswink7701 - 12.10.2023 09:43

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.

Ответить
@andr9465
@andr9465 - 20.11.2023 00:20

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?

Ответить
@akokkalis1
@akokkalis1 - 24.11.2023 16:10

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?

Ответить
@gonzalosanchez8412
@gonzalosanchez8412 - 26.11.2023 21:52

Muchas gracias!!!

Ответить
@lehuy2393
@lehuy2393 - 06.12.2023 12:35

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.*, <3.7
ERROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)
ERROR: No matching distribution found for pywin32 "

Ответить
@aceworks007
@aceworks007 - 16.12.2023 13:18

How many days access this site?

Ответить
@MdSuhailKhan-f3x
@MdSuhailKhan-f3x - 31.12.2023 15:23

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11


ERROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)
ERROR: No matching distribution found for pywin32==306


please help me i want deploy my project on render

Ответить
@MdSuhailKhan-f3x
@MdSuhailKhan-f3x - 31.12.2023 15:24

Very much helpful

Ответить
@zaniolotimur
@zaniolotimur - 03.01.2024 04:46

u are perfect ty for thi clear presentation

Ответить
@adrianmin713
@adrianmin713 - 21.01.2024 18:02

Truly amazing tutorials. Thank you so much for sharing.

Ответить
@mraider45
@mraider45 - 06.02.2024 21:35

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

Ответить
@harshrajyoutube
@harshrajyoutube - 10.03.2024 19:54

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

Ответить
@noufianazir3780
@noufianazir3780 - 20.03.2024 09:19

Got not found after deploying

Ответить
@0070-k2d
@0070-k2d - 08.04.2024 18:19

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

Ответить
@dave_eke
@dave_eke - 15.04.2024 00:11

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

Ответить
@siddharth.chandani
@siddharth.chandani - 21.04.2024 11:18

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

Ответить
@BruceKamugisha
@BruceKamugisha - 21.04.2024 21:27

why is it saying my gunicorn command is not found

Ответить
@siddharth.chandani
@siddharth.chandani - 26.04.2024 07:33

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?

Ответить
@TuzyKawaii
@TuzyKawaii - 21.05.2024 15:04

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'

Ответить
@abunaim9624
@abunaim9624 - 23.05.2024 21:14

It is really helpful! thank you sir.

Ответить
@alyaaahmed4462
@alyaaahmed4462 - 31.05.2024 08:42

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

Ответить
@sotak77
@sotak77 - 22.06.2024 04:32

Great video as always. Thank you.

Ответить
@sogolsaadat2488
@sogolsaadat2488 - 10.08.2024 01:18

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.

Ответить
@DougMcLain
@DougMcLain - 26.08.2024 20:26

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.

Ответить