Python Django Tutorial: Deploying Your Application (Option #1) - Deploy to a Linux Server

Python Django Tutorial: Deploying Your Application (Option #1) - Deploy to a Linux Server

Corey Schafer

5 лет назад

421,187 Просмотров

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


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

Chris Harden
Chris Harden - 19.10.2023 09:01

I'm trying to deploy using postgres database and I'm stuck:(

Ответить
Hashir Razzaq
Hashir Razzaq - 12.10.2023 15:13

anyone with permission denied (public key ) error ? any solutions ?

Ответить
Hashir Razzaq
Hashir Razzaq - 09.10.2023 11:11

Can we use Digital ocean for this tutorial ? someone please tell me before I start this tutorial

Ответить
Gokul G.M
Gokul G.M - 05.10.2023 12:38

how can i host my django on my own server (i have a server computer )i dont want to host my app in third party clouds

Ответить
Jack Lee
Jack Lee - 26.09.2023 08:33

Thank you anyways.

Ответить
Jack Lee
Jack Lee - 25.09.2023 06:58

outdated for 2023?

Ответить
Anatoliy Loboda
Anatoliy Loboda - 24.08.2023 20:12

It's a pitty but I haven't succeded in sending emails.
I will be thankful for separate tutorial about it.

Ответить
Mossadeghification
Mossadeghification - 24.07.2023 11:16

Hi, awsome django series, and an awsome deployment video.
One issue I found was at about 57 minute:
This is executed: sudo chown :www-data django_project/
But this is not executed: sudo chmod -R 775 django_project/
And subsequently I got this error: "attempt to write a readonly database" and db.sqlite3 was mentioned.

Ответить
Ahraf khatri
Ahraf khatri - 15.07.2023 17:11

Hey Corey,
I followed your video to deploy my django project but it is throwing this error can you please guide me what can be the cause for the error and how can I handle it.
"Forbidden
You don't have permission to access this resource.

Apache/2.4.52 (Ubuntu) Server at 1*.**.***.* Port 80"
This is the error It would be really helpful if you can guide me through it

Ответить
Eamon Burns
Eamon Burns - 14.07.2023 20:35

You can now use SSH straight inside of windows:

Settings > Apps > Optional Features > Install the "OpenSSH Client" feature.
You should just be able to use SSH commands in the terminal

Ответить
MetsuNoShin
MetsuNoShin - 04.07.2023 18:40

I ran into an issue. It could not locate one of my app's templates. The issue turned out to be that i had named one of my app's folders 'Templates'. It worked fine on my local machine, but i guess linux is case sensitive and won't like it and will throw an TemplateDoesNotExist Error.

Ответить
MetsuNoShin
MetsuNoShin - 04.07.2023 16:47

I was not able to use the ssh key to login from my windows cmd without going into bash first. It works just fine when using bash. Just in case other people have the same issue.

Ответить
Pandexity
Pandexity - 25.05.2023 18:11

If someone is having the issue in deployment where there server is being incredibly slow.

ADD THIS LINE TO THE apache2.conf file inside etc/apache2
WSGIApplicationGroup %{GLOBAL}

Ответить
Sean Murray
Sean Murray - 21.05.2023 19:49

kawrgs
still funny.

Ответить
Luke Allison
Luke Allison - 15.05.2023 06:36

SECRET_KEY = config['SECRET_KEY']

EMAIL_HOST_USER = config.get('EMAIL_USER')
Why the different process?

Ответить
Yahya mlaouhi
Yahya mlaouhi - 06.05.2023 19:15

this is too good to be real

Ответить
L'art du dessin
L'art du dessin - 05.04.2023 06:23

Incredibly useful tutorial, thank you so much !

Ответить