Tap to unmute

Deploy Django with NGINX and Waitress on Windows Server 2019

  Рет қаралды 27,566

Johnnyboycurtis

Johnnyboycurtis

Күн бұрын

Пікірлер: 71
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
GitHub: github.com/Johnnyboycurtis/webproject
@architeutes
@architeutes Жыл бұрын
3 years old and still the best tutorial i could find. I struggled so long with this and you made it so easy. Thanks for the good work you did :)
@mgradebe8783
@mgradebe8783 3 жыл бұрын
Don't usually comment but my man you are a lifesaver. Super clear explanation and ran one time. Thanks sir
@jaredfiacco1107
@jaredfiacco1107 4 жыл бұрын
Thank you Johnny! You're a lifesaver. I wasted a lot of time trying to figure things out on my own. Keep up the great content!
@kizmarco
@kizmarco 3 жыл бұрын
100% agreed! Big Thank You!
@TheKolcantas
@TheKolcantas 4 жыл бұрын
Saviour of beginners! Everything works as expected! Thank you!
@guysmallwood8828
@guysmallwood8828 3 жыл бұрын
Thanks for this great tutorial it really helped me. I've wrestling with a django windows deploy on and off for a couple of months. It works beautifully for me now.
@ramadhanngallen9217
@ramadhanngallen9217 3 жыл бұрын
Did you managed to use it with virtual environment
@marvingrapa
@marvingrapa Жыл бұрын
Still the best tutorial available. Thank you for sharing this.
@pitupipitu
@pitupipitu 3 жыл бұрын
You made it very easy to understand the setup process, thanks!
@hamzazahidulislam3490
@hamzazahidulislam3490 4 жыл бұрын
Thank you so much, sir 😍😍😍. sir, you don't know how much time I Spain on that topic finally I got it. sir good place you sir I don't know how to explain my mind to you sir
@projectxny
@projectxny 3 жыл бұрын
After I run runserver.py it didnt print any message
@sarc007
@sarc007 4 жыл бұрын
Thanks for your video and tutorials it really helped. May god give you health, wealth, happiness and success in this world and hereafter. Ameen. Your video is rare I wanted to know how to use nginx for my combined log generation. And it helped me along with another you tubers Django tutorial :).
@Saradomin65
@Saradomin65 4 жыл бұрын
So does that mean we'll have to open "Nginx.exe" all the time thru the CLI?
@TheRealHouji
@TheRealHouji Жыл бұрын
Do you have tutorial on how to install certificate using nginx and waitress?
@rohitchugh19
@rohitchugh19 Жыл бұрын
can u please help. its working on local machine but not working over the web
@sitizubaidah8039
@sitizubaidah8039 4 жыл бұрын
Thank you very much.. 10:41 is what i'm looking for
@dinhtruonganhphuong3932
@dinhtruonganhphuong3932 2 жыл бұрын
Can you tell me where I can input timeout period? I face an issue error 504 gateway timeout but I dont know where can I change timeout period
@kikocastroneto
@kikocastroneto 3 жыл бұрын
I'm having issues with the internationalization url. With manage.py runserver it works well, but with waitress custom manage.py start_server (a custom management command that I built), internationalization redirects won't work. I can type manually the internationalized address and it will work but using a form with the POST /i18n/setlang/ ends up with incorrect address
@projectxny
@projectxny 3 жыл бұрын
I did everything but runserver is stuck and didnt print out any message
@aliqb2119
@aliqb2119 Ай бұрын
me too, did you find solution these 3 years?
@harinikumar9133
@harinikumar9133 10 ай бұрын
/how do we serve multiple Django Projects in the same Server?
@harinikumar9133
@harinikumar9133 10 ай бұрын
I changed the port from 8080 to 7000 since 8080 was not available, when I run the command runserver.py, it does show "serving on http ... " instead it shows nothing at all, can someone help me?
@migy220
@migy220 2 жыл бұрын
Hello, do i need to follow the previous tutorial to make this one work?
@Johnnyboycurtis
@Johnnyboycurtis 2 жыл бұрын
No. This is a standalone guide
@migy220
@migy220 2 жыл бұрын
@@Johnnyboycurtis so i just need to setup vmware engine from google cloud and follow the steps on the video?
@dgiri2333
@dgiri2333 3 жыл бұрын
Django running port 8080 ,nginx listen port 80 ,how this to syncing can You explain
@shafiqurrehman8216
@shafiqurrehman8216 2 жыл бұрын
hello sir , i face this error while working on the cmd windows 10 Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
@shafiqurrehman8216
@shafiqurrehman8216 2 жыл бұрын
while python 3.9 is also installed
@Johnnyboycurtis
@Johnnyboycurtis 2 жыл бұрын
Try installing Miniconda.
@shafiqurrehman8216
@shafiqurrehman8216 2 жыл бұрын
@@Johnnyboycurtis instead of python 3.9
@crcacom
@crcacom Жыл бұрын
Good I will try it with my pc. To use Nginx in Windows 10. Thanks
@idedhica
@idedhica 3 жыл бұрын
is it save for production? using waitress web server ..?
@syle9905
@syle9905 4 жыл бұрын
tks sir!! I have a question : This only work window server ? windows 10?
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
This should be applicable to Windows 10 or Windows Server 2016/2019
@syle9905
@syle9905 4 жыл бұрын
@@Johnnyboycurtis oke, tks y very much
@syle9905
@syle9905 4 жыл бұрын
@@Johnnyboycurtis can you tell me , I should deploy django(+ mssql) with ..?
@JoshDingus
@JoshDingus 4 жыл бұрын
Thanks! Definitely a pain point for windows users. I use NSSM for running items as a service. would be great to find similar config files for flask.
@soheilsalehi1
@soheilsalehi1 8 ай бұрын
Perfect Thanks sir
@PAVANKUMAR-vj8oi
@PAVANKUMAR-vj8oi 3 жыл бұрын
can it be accessed from other computer ?
@samp2286
@samp2286 2 жыл бұрын
yes, set DNS server and add rule for ports in firewall
@pankajmenkudale
@pankajmenkudale 4 жыл бұрын
excellent .This video help me alot
@pankajmenkudale
@pankajmenkudale 4 жыл бұрын
nginx: the configuration file C: ginx-1.19.2/conf/nginx.conf syntax is ok nginx: configuration file C: ginx-1.19.2/conf/nginx.conf test is successful and static folder path is added in webproject_nginx.conf as well this done . but WARNING:django.request:Not Found: /static/mainapp/style.css and js also not working .css not applying on page. and on console log showing this error Refused to apply style from 'view-localhost:9899/static/mainapp/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
I can’t debug your code for you. That’s your job buddy
@grazirodrigues1330
@grazirodrigues1330 3 жыл бұрын
@@pankajmenkudale same problem here. Did you solve this?
@manelbech7511
@manelbech7511 2 жыл бұрын
iyt gives me 502 Bad Gateway nginx/1.21.6, can you please tell me what could be the reason??
@Johnnyboycurtis
@Johnnyboycurtis 2 жыл бұрын
It's difficult to say, but it sounds like your nginx conf file may not be configured correctly. Double check it. Are you running my project or your own personal project? I recommend trying mine first, then switching over to yours after you've successfully run through this tutorial
@gegrigaming
@gegrigaming 4 жыл бұрын
how to run it on background
@deepakpatilyt
@deepakpatilyt 2 жыл бұрын
Thanks for Solution . But It Is Working Only locally when i try to access the page from outside it doesnt load . Do you know any solution for this? . I have tried adding ip to conf file also changing allowed hosts.
@AimenDAHMANI-c1b
@AimenDAHMANI-c1b Жыл бұрын
same here, have you found any solution
@deepakpatilyt
@deepakpatilyt Жыл бұрын
Use reverse proxy
@AimenDAHMANI-c1b
@AimenDAHMANI-c1b Жыл бұрын
@@deepakpatilyt can you explain more or suggest me a good tutorial please
@deepakpatilyt
@deepakpatilyt Жыл бұрын
And then forward traffic from public IP to your local server
@tajrianbintajahid7561
@tajrianbintajahid7561 4 жыл бұрын
Hi , I followed you tutorial. My OS: Windows Server 2012R2 and I have been given a local ip((MSTSC/ Remote access is enabled)). The site works fine in local-host but when I try to access the site using the local ip , it shows 404 error. Can you please help me understand what went wrong ! Thanks a lot !
@jibinKjohn04
@jibinKjohn04 3 жыл бұрын
@@tajrianbintajahid7561 did you got the solution
@tajrianbintajahid7561
@tajrianbintajahid7561 3 жыл бұрын
@@jibinKjohn04 yes
@jibinKjohn04
@jibinKjohn04 3 жыл бұрын
@@tajrianbintajahid7561 can you give his mail id
@tajrianbintajahid7561
@tajrianbintajahid7561 3 жыл бұрын
@@jibinKjohn04 he replied to my first comment with his mail id and said he will delete the comment later. So I think I cant give you his mail without his permission. but I kind of found an alter nate solution for myself. I used ISS and fastcgi to host my website.
@jibinKjohn04
@jibinKjohn04 3 жыл бұрын
@@tajrianbintajahid7561 So for you it didn't worked with nginx
@keokeovongsa3582
@keokeovongsa3582 3 жыл бұрын
How to add media directory
@Hana-z6i8y
@Hana-z6i8y 4 ай бұрын
error 500 when i closed cmd
@Awayhavingfun
@Awayhavingfun 4 жыл бұрын
Col stuff
@Jalan-Api
@Jalan-Api 8 ай бұрын
I am gonna copy this *Proceeds to cut*
@mohammadrezatavasoli6108
@mohammadrezatavasoli6108 4 жыл бұрын
hi i have this problem how should i solve this C: ginx-1.19.1>nginx.exe -t nginx: the configuration file C: ginx-1.19.1/conf/nginx.conf syntax is ok nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) nginx: configuration file C: ginx-1.19.1/conf/nginx.conf test failed
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
Read the error.
@VyNguyen-jm1pg
@VyNguyen-jm1pg 2 жыл бұрын
I have this problem: WARNING:django.request:Not Found: /
How I Made HTTP From Scratch
4:48
conaticus
Рет қаралды 30 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
Deploy Django on Windows using Microsoft IIS
22:35
Johnnyboycurtis
Рет қаралды 73 М.
All You Need to Know about WSGI
11:11
Django Lessons
Рет қаралды 69 М.
Deploy Django with Apache and mod_wsgi on Windows Server 2019
24:03
Johnnyboycurtis
Рет қаралды 38 М.
How To Deploy Django on Windows server Using Apache
20:37
Learn Python
Рет қаралды 22 М.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 680 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 578 М.
The NGINX Crash Course
50:53
Laith Academy
Рет қаралды 502 М.
The 4 best ways to deploy a Django application
7:01
London App Developer
Рет қаралды 125 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН