In this video, we set up a Linux server from scratch before we deploy Django, which is what a lot of people have requested. But if you already have a server ready to go then you might not be interested in the setup part. If you'd like to skip the Linux server setup and go straight to the deployment then please skip to 29:11 Just be sure you make the code correction I mention at the 3:00 mark! Anyways, I hope people find this useful. Deployment can be a tricky topic because there are so many different choices (e.g. hosts, operating systems, web servers, etc). These are my preferred choices in this video. Remember, if you'd like to sign up for $20 of credit at Linode then you can use my link to signup: promo.linode.com/coreyschafer/
This is a great tutorial. Looking forward to going through it over my Christmas break. Any plans for a tutorial on async and await methods in the future? Keep up the good work!
Your tutorials have made me the best web app developer in my area[East Africa Tanzania-Shinyanga]. Am a banker and I was learning as a hobby and made some few apps from skills I gained from you, suddenly some friends are asking me to create apps for their projects. Now I can design app from scrach to deployment with confidence. Thank you very much. Karibu Tanzania.
Timestamps: 02:33 - Fixing the bug from previous video 04:17 - Creating Linode 08:05 - Ip Address and SSH Credentials 10:13 - Root Connection to the Server 11:09 - Installing Software Updates 12:10 - Setting Host Name 12:46 - Setting Host File 13:59 - Adding Limited User 16:27 - Setting Up SSH Key Based Authentication 22:45 - Setting Permissions for SSH Directory 25:00 - Forbiding Root Login & Password Authentication 26:43 - Setting Up a Firewall 29:10 - Putting Django Application on Webserver 30:15 - Generating requirements.txt File 32:41 - Copying Django Application on to the Webserver 34:46 - Creating Virtual Environment on the Server 36:52 - Installing Dependencies 37:49 - Changing Django Settings for Testing the Application on Django Server 39:51 - Collecting Static Files 40:23 - Testing Application 44:30 - Installing Apache & ModWSGI 46:04 - Configuring Apache Webserver 54:38 - Enabling Site Through Apache 55:29 - Setting Up File Permissions 58:47 - Creating Configuration File for Hiding Sensitive Information 1:02:43 - Updating Project Settings File 1:07:01 - Allowing http Traffic 1:07:40 - Restarting the Server & Running the Site 1:08:57 - Fixing Final Bugs Thank you for such a clean explanation.
Deniz selam. Bu işlemleri lokaldeki (biri Linux diğeri Windows) yapmak mümkün mü? Yani django deneme projemi diğer bilgisayarı sunucuymuş gibi yükleyerek windows bilgisayarından test edebilir miyim? Bu konuda bir kaynak video önerebilir misin. Teşekkürler...
4 роки тому
@@ellawhitestone evet mümkün. ama lokal bilgisayardaki linux'te ubuntu olması gerek eğer aynı buradaki işlemleri takip etmek isterseniz.
You're incredible. As soon as you said "Set up ssh" I was thinking to myself how great it is that he is going through ALL the steps that should be taken and then you explain just that.
This is an amazing series of lessons, still completely relevant in late 2022 with the latest versions of Django and Python. I've learnt a lot. Many thanks for sharing these, Corey!
This video saved me from the hell of self-teaching Django deployment. I've seen a few teaching videos about various skills or knowledge, and yours' are one of the best. Hat off.
After following all your tutorials on creating a web app successfully I was lost without your help to deploy until now.. you are a lifesaver mate, I found deployment the hardest thing since I started learning python / django ! Thank you so much.
3 роки тому
Last year I deployed a Flask app using your channel. Now I am deploying a Django. I learned both Nginx and Apache. Thanks
As a senior developer with a few years of experience in python, but being new to Django, I was having a lot of difficulty getting my Apache server connected to Django on my local Linux VM. This video cleared up all of my basic problems that I had already spent a solid 8 hours struggling with (that's a really long time for me). Your style and depth of explanation really exhibits your level of expertise with the tools in your tutorials. Thank you very much for this. Now all I have to do is struggle bus through implementing HTTPS...
awesome series.... past 3 days I was looking to add dynamic website functionality... finally exploring all the options ... I wanted Python... and this has given me so much insight... I have watched all your 17 videos in one day... Simply superb!!!
Once upon a time, a took about 2 weeks time to figure these steps. You explained it so well it seems so simple now. Thank you so much for making our lives so easy.
Dear Corey, I really like the way you presents the tutorials you're by nature talented in teaching, What I like is that the lessons are to the point, practical and with real world best practices, So thank you and I hope you continue provide us with more lessons. All the best, - Obaid
Your tutorial is golden. I encountered a few issues along the way, but still, without your guidance, I would be lost in the woods. Lessons learned (Ubuntu 18 server): * Command: namei --modes /path/to/file is your friend when you look for permission errors * Apache likes to have everything set as executable along the path * Never place your venv outside user folder and do not mix sudo with pip install * To trace errors in production, instead of setting debug=True, use Sentry.io
Hey can you help me please? I'm getting a 403 error when trying to access site from my browser. It worked fine with the django server. But after configuring it with apache 2 I cannot access it. It is saying: You don't have permission to access this resource.What can I do?
Corey Schafer you are simply the best. I am an absolute beginner in programming but your videos has been of great of help, i already shared with my friend who also is a beginner
Man, what a comprehensive playlist on Django!! Your explanation prowess is phenomenal. I like how you intentionally do things in a simpler fashion first and then improvise ~ just like one would do in a real scenario.
Thank you, this was a fantastic tutorial. Deploying to production was one of my main concerns with learning Django. I'd love to see a video on migrating to MySQL or a Postgres database.
Thank you so much for going into deployment to a Linux server... Your series is absolutely fantastic and definitely a boon to all young learners... I have recommended your Python videos to my professor at college as additional resources that students can come to, to further enhance their knowledge in Python...
I have always wanted to be able to go from scratch to deploying something that is useable beyond a CLI. You just gave me the ability to fully build a wiki-like website for our DnD campaign. That one will for sure come as a surprise :-D. Thank you so much !
Thank You for this. I went here only to get the apache conf file, but I watched everything, just because it is a pretty good deployment overall. A must see for all Python devs without Linux admin team to help.
// Setting up a new server set hostname 12:10 add user 14:20 permissions ssh 23:00 disable root login and password authentication 25:20 firewall 27:00 deployment 29:11
I didn't understand all of it. But i think it's one of the bestest and fully explanatory tutorials in this subject in the whole internet. Thanks for sharing! Great work!!!
Excellent tutorial. Your explanations are perfectly precise and exhaustive, which shows that you have full control of the subject. And that's very uncommon, because many people on UA-cam make "tutorials" without really mastering their subject. Thank you so much!
This tutorial is just amazing. Thank you for sharing your time with us strangers. I'm just starting with Django and after this I can see many possibilities. You are an amazing teacher. Edit: I am from Brazil and I am not fluent in English yet. Despite that, I could understand you perfectly. You have a great diction.
Hey, I am so happy that I found your Tutorial. I tried setting up my Django Server on my Strato V Server 4 or 5 Times and it never started and showed up. After your Tutorial my Server started without any Problems. I am so freaking happy and I can´t do more that Like Your Video, Subscribe and share that Video with everyone that has Problems setting up his Server. Thank you so much and keep up making that great Videos
1:08:04 - if you are getting an error, you probably have a syntax error or one of your folder has a space in it. First check for the error. To do that type - cd /etc/apache2 apache2ctl configtest This will tell u about the error. Now go back to your config file and wherever you r using a path with folder name with spaces just put it inside quotes like this - "home/username/My\ Website/"
First of all, thank you Corey for this great work! For someone who faced issue to up your project after done setup the Apache2 and WSGI. My personal experience is don't put your project folder and venv folder under the /home directory. Besides, you also need to add WSGIApplicationGroup %{GLOBAL} to the bottom of the apache2 file which located at /etc/apache2/apache2.conf if you hit an error stated that "Truncated or oversize response header received."
Thanks a lot!!!! This second part with adding WSGIApplicationGroup was necessary in my setup, otherwise I was getting the "Truncated or oversize..." error which I didn't know how to fix.
ty for this useful videos, been researching for an 1h or so and all i could find was rubbish bloated information xD, thank you again for posting this video
Hello Corey I just finished the deployment of my blog, and it works fine, thanks a lot! Yes how to add a domain name would be another very useful tutorial vid. And perhaps another one on adding some cosmetics, like make URL links 'alive' in the posts, adding pictures in posts, and cut long post with a '...more' link to read the rest of it... I really appreciate this deployment video, it was so interesting! Thanks a million again and Happy New Years 2019 :-)
Thank you, thank you, THANK YOU!! I hate the way you pronounce the sudo(psuedo) command, but I can get over it, your content was detailed, yet efficient. This helped me out immensely
Awsome ! thanks for your work, your sympathy and your humility. As already written below, the most clear course i've ever seen about deployment. For people would whould encounter 403 issue at the end, please be aware of the rights set on your /home/user folder. In my distro, by default, access was set only for the user another thing (maybe i missed something in the course) i had to replace template dir in setting.py : 'DIRS': [os.path.join(BASE_DIR, 'templates'], -> 'DIRS': [BASE_DIR / 'templates'],
To everyone having 403 issues using Ubuntu 20.xx, change the file permissions of the directories to 711. do this by using the same commands as you did for the media and static folders.if you use the command [sudo chmod 711 /home/YOUR_USERNAME] into the command line on your bash shell that should fix the issue.
@@lukechamberlin9257 wow thanks. I was getting 403. Then i followed your steps but now my browser keeps loading and never gets a response. Do you think I may be missing another step?
@@lukechamberlin9257 I have the same problem as rafael246: browser keeps loading after executing [sudo chmod 711 /home/YOUR_USERNAME]. Do you know any solution?
Awesome is also a small word for you...hats off and be post these kind of posts to know actual implementaion of work or deployment of a website . I think no one done like this as u do. Great videos i am looking forward from you.
Awesome content with simple explanation for all the topics involved in making any web app alive for public use... Thanks once again to do this series...
Thanks for this amazing series! I was able to follow along through all 13 videos with only one snag. I get a TimeoutError using the password reset form on the deployed site. Looks like it's a Linode issue, so I'll set it up with a real domain name later and open a support ticket with them. Should be good to go after that!
Honestly the best Django tutorial I've come across! The only problem I've had is that sending emails via gmail no longer works on the apache2 webserver. It still works perfectly via the django server on my local machine. I've looked online but none of the suggestions have helped so far. :( Regardless, thanks for your amazing series!
I had the same trouble. If you are using Linode, they began on 11/5/19 to block the SMTP ports by default for spam prevention. You need to make sure to do the dns, rdns steps then send a ticket to Linode support requesting they unblock the smtp port. The tutorial was made prior to this new policy.
Hey Corey.. Thanks for making for such awesome videos.. I followed your Python tutorials when i was learning Python and then when i started learning Django you made a great video series.. I would really like to see a video series on Scrapy.. Please consider it..
Hi Corey, your tutorials are great. One thing that would make long videos like this better if you feel like putting in the time, though, is putting timestamps in the description for each of the major steps involved in this lengthy and complicated process. I just built my first website following your Django tutorials and find myself referring back to this video a lot specifically, since a lot of the stuff I just followed to get the website built without really trying to commit too much to memory or fully understanding the concepts. Replicating this process to build multiple sites (and make a business out of it) or just remembering some of the concepts to manage a Linux server requires deeper study than just following these well-produced tutorials to the t. It would be much easier to click on timestamps than having to sift through the thumbnails and reference the step of the process in question. I also feel like a lot of this stuff, while good to go through the process one or a few times to understand what's going on, could easily be automated via a Python script that runs commands through the Bash shell and the server's command line. As fun as it is to learn back-end web development and feel like a 1337 h4X0R for doing so, some of this stuff would get pretty tedious if you were trying to do web development repeatedly as a business function.
I did all of my codings in Atom for this project and now I'm stuck (minute 30:13) not knowing how to setup virtual environment for the file i want to upload!! Can someone please tell me how I can get the virtual environment set up for atom?? :/
Sir, there is a error showing forbidden error 403 after completing all the steps completely untill 1:08:01...there is no error in the steps i have attempted many times.... I have beem stuck here for 4 days plzzz help me out🥺🥺
Hi Thanks for This Knowledgeful Video. Every time i deploy django app i always go through this video once so that i do not miss anything at all. Again Thanks :)
@@johannafabre7967 If Web app is deployed using git repository then u need to simply pull down latest git repository and restart the services. Or if you placed the application folder directly then just replace same with latest one and then restart services. Best way is Always Google out for Latest Practice and make sure you are doing right. 👍👍
dude that's literally what ive been looking for last 2 weeks as i finished your django series (well, almost finished, as long as there is part 13 now, haha) ur so cool keep it up btw im requesting a video on comparing different frameworks for RequestPerMinute and etc. so people would see the tradeoffs before they even began to learn some particular framework. would be cool to have such a vid between different languages (for example ruby, php, python, node.js, but python-only would work too)
Thank you very much for this, Corey, this is a great way to continue to expand yourself. Creating more go to public production instead of local is missing from the Internet and if you do find one it's fully of dependency hell, where things breaks with very little insight.
I'm currently working through your Django tutorial so thought I would pay a little back by using your Linode referral when I just signed up. Thank you.
In this video, we set up a Linux server from scratch before we deploy Django, which is what a lot of people have requested. But if you already have a server ready to go then you might not be interested in the setup part. If you'd like to skip the Linux server setup and go straight to the deployment then please skip to 29:11
Just be sure you make the code correction I mention at the 3:00 mark! Anyways, I hope people find this useful. Deployment can be a tricky topic because there are so many different choices (e.g. hosts, operating systems, web servers, etc). These are my preferred choices in this video. Remember, if you'd like to sign up for $20 of credit at Linode then you can use my link to signup: promo.linode.com/coreyschafer/
Corey Schafer thank You for this video! Will you be making a Flask video on how to do this as well?
Yes, I hope to have that one done in the next week or so.
This is a great tutorial. Looking forward to going through it over my Christmas break. Any plans for a tutorial on async and await methods in the future? Keep up the good work!
Can you please make videos more regularly. I love your videos. Thank you for making them. You are the best.
Hey corey can you do similar tutorial for the flask series?
Just being honest, this is the best Django deployment tutorial on the internet!
Thanks!
@@coreyms Waiting forward for the nginx option!
the best is the option 2 from this same channel !
is this free?
Yes. I'm with you in that.
Your tutorials have made me the best web app developer in my area[East Africa Tanzania-Shinyanga]. Am a banker and I was learning as a hobby and made some few apps from skills I gained from you, suddenly some friends are asking me to create apps for their projects. Now I can design app from scrach to deployment with confidence. Thank you very much. Karibu Tanzania.
This was inspiring. Thanks for sharing.
That's awesome! Thanks for sharing! Best of luck
Timestamps:
02:33 - Fixing the bug from previous video
04:17 - Creating Linode
08:05 - Ip Address and SSH Credentials
10:13 - Root Connection to the Server
11:09 - Installing Software Updates
12:10 - Setting Host Name
12:46 - Setting Host File
13:59 - Adding Limited User
16:27 - Setting Up SSH Key Based Authentication
22:45 - Setting Permissions for SSH Directory
25:00 - Forbiding Root Login & Password Authentication
26:43 - Setting Up a Firewall
29:10 - Putting Django Application on Webserver
30:15 - Generating requirements.txt File
32:41 - Copying Django Application on to the Webserver
34:46 - Creating Virtual Environment on the Server
36:52 - Installing Dependencies
37:49 - Changing Django Settings for Testing the Application on Django Server
39:51 - Collecting Static Files
40:23 - Testing Application
44:30 - Installing Apache & ModWSGI
46:04 - Configuring Apache Webserver
54:38 - Enabling Site Through Apache
55:29 - Setting Up File Permissions
58:47 - Creating Configuration File for Hiding Sensitive Information
1:02:43 - Updating Project Settings File
1:07:01 - Allowing http Traffic
1:07:40 - Restarting the Server & Running the Site
1:08:57 - Fixing Final Bugs
Thank you for such a clean explanation.
thnx
Thanks
Deniz selam. Bu işlemleri lokaldeki (biri Linux diğeri Windows) yapmak mümkün mü?
Yani django deneme projemi diğer bilgisayarı sunucuymuş gibi yükleyerek windows bilgisayarından test edebilir miyim?
Bu konuda bir kaynak video önerebilir misin. Teşekkürler...
@@ellawhitestone evet mümkün. ama lokal bilgisayardaki linux'te ubuntu olması gerek eğer aynı buradaki işlemleri takip etmek isterseniz.
@ Bu video 2018 den kalma. Lubuntu bilgisayarımda hala işe yarar mı?
You're incredible.
As soon as you said "Set up ssh" I was thinking to myself how great it is that he is going through ALL the steps that should be taken and then you explain just that.
Corey Schafer is the God of Python tutorials. This was an amazing journey. Thank you!
By adding this video to your Django course. You had made this course "the best course on Internet". Coz. Nobody talk about this
Some do.
I fully agree
Is this free?
Yes true
This is an amazing series of lessons, still completely relevant in late 2022 with the latest versions of Django and Python. I've learnt a lot. Many thanks for sharing these, Corey!
Most tutorial won't cover about deploy web application to the server but this tutorial really step up from the rest of YT videos.
The best thing that could ever happen to me is to wake up and see new video uploaded by you. You are the best teacher on UA-cam.
This video saved me from the hell of self-teaching Django deployment. I've seen a few teaching videos about various skills or knowledge, and yours' are one of the best. Hat off.
After following all your tutorials on creating a web app successfully I was lost without your help to deploy until now.. you are a lifesaver mate, I found deployment the hardest thing since I started learning python / django ! Thank you so much.
Last year I deployed a Flask app using your channel. Now I am deploying a Django. I learned both Nginx and Apache. Thanks
As a senior developer with a few years of experience in python, but being new to Django, I was having a lot of difficulty getting my Apache server connected to Django on my local Linux VM. This video cleared up all of my basic problems that I had already spent a solid 8 hours struggling with (that's a really long time for me). Your style and depth of explanation really exhibits your level of expertise with the tools in your tutorials.
Thank you very much for this.
Now all I have to do is struggle bus through implementing HTTPS...
I’ve got an HTTPS video available too. It may be able to help. Best of luck.
@@coreyms I clearly spoke too soon. You the man!
awesome series.... past 3 days I was looking to add dynamic website functionality... finally exploring all the options ... I wanted Python... and this has given me so much insight... I have watched all your 17 videos in one day... Simply superb!!!
Simply the best tutorial i have ever seen on django deployment. Thank you, Mr Corey
Brilliant, well-planned, tireless, consistent. Can't say enough good things about this tutorial
Its 2020 and this is still the best Tutorial I have found so far! Thank you Corey!
its 2022 and still the best tutorial lol
Once upon a time, a took about 2 weeks time to figure these steps. You explained it so well it seems so simple now. Thank you so much for making our lives so easy.
Dear Corey,
I really like the way you presents the tutorials you're by nature talented in teaching,
What I like is that the lessons are to the point, practical and with real world best practices,
So thank you and I hope you continue provide us with more lessons.
All the best,
- Obaid
Your tutorial is golden. I encountered a few issues along the way, but still, without your guidance, I would be lost in the woods. Lessons learned (Ubuntu 18 server):
* Command: namei --modes /path/to/file is your friend when you look for permission errors
* Apache likes to have everything set as executable along the path
* Never place your venv outside user folder and do not mix sudo with pip install
* To trace errors in production, instead of setting debug=True, use Sentry.io
Hey can you help me please? I'm getting a 403 error when trying to access site from my browser. It worked fine with the django server. But after configuring it with apache 2 I cannot access it. It is saying: You don't have permission to access this resource.What can I do?
Corey Schafer you are simply the best. I am an absolute beginner in programming but your videos has been of great of help, i already shared with my friend who also is a beginner
Thanks!
Thank you so much!!! Best series on the internet, no other paid or free tutorials even compare to the quality and informational value on here.
You actually trained me how strong django is
❤️💭💚 Thanks from INDIA
FUCK YOU T SERIES
@@ovipaw why the hate bro?
@@ovipaw We indians love both pewdiepie and t-series bcz we respect creator and content.
Man, what a comprehensive playlist on Django!!
Your explanation prowess is phenomenal. I like how you intentionally do things in a simpler fashion first and then improvise ~ just like one would do in a real scenario.
I want to continue to thank you for this content, yeards later and I'm still coming back to these videos. Such useful information.
Thanks, Corey! With this Video, I actually manage to deploy my first website! You're awesome.
Thank you, this was a fantastic tutorial. Deploying to production was one of my main concerns with learning Django. I'd love to see a video on migrating to MySQL or a Postgres database.
i'm working as a devops because 2 years ago i'm following this tutorial. thank you.
Thank you so much for going into deployment to a Linux server... Your series is absolutely fantastic and definitely a boon to all young learners...
I have recommended your Python videos to my professor at college as additional resources that students can come to, to further enhance their knowledge in Python...
You are a great teacher..All my life I worked on mainframes and when I tried your videos suddenly IT seems exciting again to me :)
I have always wanted to be able to go from scratch to deploying something that is useable beyond a CLI. You just gave me the ability to fully build a wiki-like website for our DnD campaign. That one will for sure come as a surprise :-D. Thank you so much !
this was one of the best walkthrough tutorials I've ever seen. Sent you a small one-time donation for that one, thank you for your time and effort
Man am I glad I got familiar with using bash on windows before this tutorial. You made it soooo easy. Thank you.
Thank You for this. I went here only to get the apache conf file, but I watched everything, just because it is a pretty good deployment overall. A must see for all Python devs without Linux admin team to help.
You're the best Corey. You're crystal clear and it's so easy to follow your steps. Thanks so much for helping us out.
This is the best Django deployment Tutorial I have ever seen. Corey the GOAT
Your tutorials are the best tutorials I've ever experienced.
// Setting up a new server
set hostname 12:10
add user 14:20
permissions ssh 23:00
disable root login and password authentication 25:20
firewall 27:00
deployment 29:11
I didn't understand all of it. But i think it's one of the bestest and fully explanatory tutorials in this subject in the whole internet. Thanks for sharing! Great work!!!
Corey, your videos are golden, thanks a bunch. Your instructions are impeccable.
Thanks for this! This is easily the most detailed and best explained Django deployment video I've seen.
Corey, you're a life saver. Way more comprehensive than Azure (for someone with my skill set anyway). I will be joining when I get some money. Thanks!
The best Django deployment tutorial on internet !
Excellent tutorial. Your explanations are perfectly precise and exhaustive, which shows that you have full control of the subject. And that's very uncommon, because many people on UA-cam make "tutorials" without really mastering their subject.
Thank you so much!
This tutorial is just amazing. Thank you for sharing your time with us strangers. I'm just starting with Django and after this I can see many possibilities. You are an amazing teacher.
Edit: I am from Brazil and I am not fluent in English yet. Despite that, I could understand you perfectly. You have a great diction.
Hey,
I am so happy that I found your Tutorial. I tried setting up my Django Server on my Strato V Server 4 or 5 Times and it never started and showed up. After your Tutorial my Server started without any Problems.
I am so freaking happy and I can´t do more that Like Your Video, Subscribe and share that Video with everyone that has Problems setting up his Server.
Thank you so much and keep up making that great Videos
Thank you, thank you, thank you!!!! The $20 credit is also appreciated! So clear and concise, truly the best!
1:08:04 - if you are getting an error, you probably have a syntax error or one of your folder has a space in it.
First check for the error. To do that type -
cd /etc/apache2
apache2ctl configtest
This will tell u about the error.
Now go back to your config file and wherever you r using a path with folder name with spaces just put it inside quotes like this -
"home/username/My\ Website/"
mine says forbidden 403
do not have permission to the webiste
First of all, thank you Corey for this great work!
For someone who faced issue to up your project after done setup the Apache2 and WSGI. My personal experience is don't put your project folder and venv folder under the /home directory. Besides, you also need to add WSGIApplicationGroup %{GLOBAL} to the bottom of the apache2 file which located at /etc/apache2/apache2.conf if you hit an error stated that "Truncated or oversize response header received."
Thanks a lot!!!! This second part with adding WSGIApplicationGroup was necessary in my setup, otherwise I was getting the "Truncated or oversize..." error which I didn't know how to fix.
ty for this useful videos, been researching for an 1h or so and all i could find was rubbish bloated information xD, thank you again for posting this video
I am improving English, I am improving hard skills, I am improving my mind watching Corey. Thanks!
Your any course(including this) is the best among any course of the internet + offline.
Best deployment video by far.
Hello Corey I just finished the deployment of my blog, and it works fine, thanks a lot! Yes how to add a domain name would be another very useful tutorial vid. And perhaps another one on adding some cosmetics, like make URL links 'alive' in the posts, adding pictures in posts, and cut long post with a '...more' link to read the rest of it...
I really appreciate this deployment video, it was so interesting! Thanks a million again and Happy New Years 2019 :-)
I just want to say, you saved developers!!
Thank you, thank you, THANK YOU!!
I hate the way you pronounce the sudo(psuedo) command, but I can get over it, your content was detailed, yet efficient. This helped me out immensely
FYI: sudo is not (psuedo). It means super user do. Therefore Corey's annunciation is proper...
Hi @Corey Schafer , I wanna thank you for this series. I just wanna point out the typing error at 3:38 (*args, ***kwargs* ) instead of ***kawrgs*
Just finished the series, Thank you so much. I owe a lot to you.
Awsome ! thanks for your work, your sympathy and your humility. As already written below, the most clear course i've ever seen about deployment.
For people would whould encounter 403 issue at the end, please be aware of the rights set on your /home/user folder. In my distro, by default, access was set only for the user
another thing (maybe i missed something in the course) i had to replace template dir in setting.py : 'DIRS': [os.path.join(BASE_DIR, 'templates'], -> 'DIRS': [BASE_DIR / 'templates'],
how do you change access only from the user? what should the permissions look like?
To everyone having 403 issues using Ubuntu 20.xx, change the file permissions of the directories to 711. do this by using the same commands as you did for the media and static folders.if you use the command [sudo chmod 711 /home/YOUR_USERNAME] into the command line on your bash shell that should fix the issue.
@@lukechamberlin9257 wow thanks. I was getting 403. Then i followed your steps but now my browser keeps loading and never gets a response. Do you think I may be missing another step?
@@rafael246 exactly the same thing for me! Do you have any solution by now?
@@lukechamberlin9257 I have the same problem as rafael246: browser keeps loading after executing [sudo chmod 711 /home/YOUR_USERNAME]. Do you know any solution?
Thank you so much for the lessons Corey. You're a very good teacher. Looking forward to more courses/videos from you.
So how different would this be if you are trying to turn your local (ubuntu) machine a server for your site?
thank you very much, this is what every starting developer needs
Hi Corey, I wish I could give you a thousand times thumbs up! Thank you so much!
fell asleep there from the django_project config file...phew, but managed to come back and go through till the end...Thanks for the video
Your django tutorials are the best bro
Awesome is also a small word for you...hats off and be post these kind of posts to know actual implementaion of work or deployment of a website . I think no one done like this as u do. Great videos i am looking forward from you.
Just what I need... Thanks Corey.
Same here!!!
Awesome content with simple explanation for all the topics involved in making any web app alive for public use... Thanks once again to do this series...
Thanks for this amazing series! I was able to follow along through all 13 videos with only one snag. I get a TimeoutError using the password reset form on the deployed site. Looks like it's a Linode issue, so I'll set it up with a real domain name later and open a support ticket with them. Should be good to go after that!
What a great explanation. Thank you sir for your helpful tutorial. I am watching this video from Bangladesh. Take the love ❤
Got $100 credit for using his referral code. Thanks Corey!
Honestly the best Django tutorial I've come across! The only problem I've had is that sending emails via gmail no longer works on the apache2 webserver. It still works perfectly via the django server on my local machine. I've looked online but none of the suggestions have helped so far. :( Regardless, thanks for your amazing series!
I had the same trouble. If you are using Linode, they began on 11/5/19 to block the SMTP ports by default for spam prevention. You need to make sure to do the dns, rdns steps then send a ticket to Linode support requesting they unblock the smtp port. The tutorial was made prior to this new policy.
Amazing! :) This tutorial is the best. Thank you very very much and greetings from Warsaw!
do you know how to apply changes to the web app once its deployed?
33:50 copying files over // 44:42 installing wsgi and apache2 // 54:47 enable site apache // 13:35 hostname django-server
Simply the best teacher best course and best channel
You truly are an MVP Corey.
THANKYOU COREY SCHAFER FOR THIS VIDEO I REALLY CONFUSED FOR HOW TO USE THE DJANGO APP FOR PRODUCTION. ONCE AGAIN THANKYOU
Thanks so much ! Try 4 other tutorials before being able to move on thanks to yours.
Bcoz of u I m improving my skills .... thank u very much from India 😊😊😊
Hey Corey.. Thanks for making for such awesome videos.. I followed your Python tutorials when i was learning Python and then when i started learning Django you made a great video series.. I would really like to see a video series on Scrapy.. Please consider it..
I'm so thankful of you Corey. This course is so good.
Hi Corey, your tutorials are great. One thing that would make long videos like this better if you feel like putting in the time, though, is putting timestamps in the description for each of the major steps involved in this lengthy and complicated process. I just built my first website following your Django tutorials and find myself referring back to this video a lot specifically, since a lot of the stuff I just followed to get the website built without really trying to commit too much to memory or fully understanding the concepts. Replicating this process to build multiple sites (and make a business out of it) or just remembering some of the concepts to manage a Linux server requires deeper study than just following these well-produced tutorials to the t. It would be much easier to click on timestamps than having to sift through the thumbnails and reference the step of the process in question.
I also feel like a lot of this stuff, while good to go through the process one or a few times to understand what's going on, could easily be automated via a Python script that runs commands through the Bash shell and the server's command line. As fun as it is to learn back-end web development and feel like a 1337 h4X0R for doing so, some of this stuff would get pretty tedious if you were trying to do web development repeatedly as a business function.
I did all of my codings in Atom for this project and now I'm stuck (minute 30:13) not knowing how to setup virtual environment for the file i want to upload!! Can someone please tell me how I can get the virtual environment set up for atom?? :/
Sir, there is a error showing forbidden error 403 after completing all the steps completely untill 1:08:01...there is no error in the steps i have attempted many times.... I have beem stuck here for 4 days plzzz help me out🥺🥺
I am stuck on that step too. If you happen to solve it please provide the solution here.
@@sariksadman1709 any luck?? im stuck here too
Hi Thanks for This Knowledgeful Video. Every time i deploy django app i always go through this video once so that i do not miss anything at all. Again Thanks :)
do you know how to push the changes once the web app is deployed? Thanks
@@johannafabre7967 If Web app is deployed using git repository then u need to simply pull down latest git repository and restart the services. Or if you placed the application folder directly then just replace same with latest one and then restart services. Best way is Always Google out for Latest Practice and make sure you are doing right. 👍👍
dude that's literally what ive been looking for last 2 weeks as i finished your django series (well, almost finished, as long as there is part 13 now, haha)
ur so cool
keep it up
btw im requesting a video on comparing different frameworks for RequestPerMinute and etc. so people would see the tradeoffs before they even began to learn some particular framework. would be cool to have such a vid between different languages (for example ruby, php, python, node.js, but python-only would work too)
I'd like this video more than once if I could. Love your videos. Keep it up :)
Thank you very much for this, Corey, this is a great way to continue to expand yourself. Creating more go to public production instead of local is missing from the Internet and if you do find one it's fully of dependency hell, where things breaks with very little insight.
I really like your type of teaching! It really makes things clear! You've helped me a lot improving my python/programming skills:)
Thanks a lot for the clear, step-by-step explanation. Very good content!
Best python UA-camr
Thanks for making us a pro in Django.
Thanks for watching!
Just finalised this last bit . Thank you Corey....truly amazing
Thank you so much Corey. Best tutorial ever on deployment !!!
Thank you very much.. I was searching for such explaining for this subject and I couldn't find. Thanks again.
Thanks for another awesome tutorial, can't wait for the postgres video!
@Corey Schafer thank you for this awsome course. a lot beneficial
I'm currently working through your Django tutorial so thought I would pay a little back by using your Linode referral when I just signed up. Thank you.
Pretty clear and useful Corey, please upload how to HTTPS as soon as you can :) keep the good work