Deploy Django on Windows using Microsoft IIS

  Рет қаралды 73,468

Johnnyboycurtis

Johnnyboycurtis

Күн бұрын

Пікірлер: 130
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
GitHub: github.com/Johnnyboycurtis/webproject
@faadi4536
@faadi4536 2 жыл бұрын
Thanks Johnny for making this video. There are not lot of people out there who will create such tutorials. You saved the day man. Keep up the good work and charity.
@felipeinoue6257
@felipeinoue6257 4 жыл бұрын
It's hard to find such a direct and well explained tutorial like this. Many thanks!!
@88kajin
@88kajin 6 ай бұрын
Even after 4yrs later from publishing this video, it's being helpful! Thanks a lot for such a nicely explained tutorial. ❤
@TheSoftwareServices
@TheSoftwareServices 3 жыл бұрын
Thank you Jonny, after watching many videos at last with your video guidance, i had successfully deployed my django app in IIS .May god bless u and ur family.
@SingleIndexArray
@SingleIndexArray 4 жыл бұрын
I gave up on deploying my app to IIS. its been a year that i cant find a straight forward video/doc. anything i tried, failed. today i found your video, and in matter of 30 min i deployed my app and working perfectly. really great job and thanks for this
@danieleriksson3294
@danieleriksson3294 7 ай бұрын
Even if it was older it was a damn good tutorial, all the love to you.
@otegbadekolade6110
@otegbadekolade6110 4 жыл бұрын
Hello! After two days of hair pulling, I found your video and finally got it to work Thanks a lot
@miguellinares7465
@miguellinares7465 3 ай бұрын
I have seen your video with Spanish subtitles, You take your like and new subscriber. It worked perfectly for me and I couldn't find any other video that explained it as well as this one!
@Johnnyboycurtis
@Johnnyboycurtis 3 ай бұрын
Que bueno que te haya ayudado ❤️
@alvischeng5943
@alvischeng5943 4 жыл бұрын
Thank you Johnny, you are my lifesaver, I spent 3 days too and no good result before I see your video.
@langtutorial4828
@langtutorial4828 Жыл бұрын
Thanks a lot. Seriously I have been doing this for the past one week. But now I am done with this . Thanks a lot
@arielpenalver2531
@arielpenalver2531 11 ай бұрын
Bro, you save my life!!! I could never deploy on windows...1st time! Thx a lot
@traitotaku4940
@traitotaku4940 4 жыл бұрын
OMG! I spent 3 days to solve this but watching this video simply solved the problem in 20 min!!!!!! Many thanks my boy!
@sglgaming2991
@sglgaming2991 2 жыл бұрын
"i'm gonna open up internet explorer and what i wanna do first is install a.. uuuh.. new web browser" 😂
@TheJester123-k1r
@TheJester123-k1r 3 жыл бұрын
Excellent and a lifesaver! This explained everything in needed detail and saved me a lot of pain. Really appreciate this...
@yunusrf
@yunusrf 3 жыл бұрын
Thank you very much, Johny. You saved a lot of effort. It is a very rare video with such a direct and well explained. God bless you. Many thanks!!
@prohacker5086
@prohacker5086 2 жыл бұрын
if it gives error on 18:00 when you try to collect static, uncomment this line in webproject/webproject/settings.py: "STATIC_ROOT = os.path.join(BASE_DIR, 'static')" Then it will collect just fine
@alirahmani8901
@alirahmani8901 2 жыл бұрын
Thanks a lot, THE BEST TUTORIAL THAT REALLY WORKS. Well explained and concise. Thanks you.
@dennydraco
@dennydraco 2 жыл бұрын
Thanks for the vid., this was a greatly assisted in getting my site up and running.
@oshodikolapo2159
@oshodikolapo2159 Жыл бұрын
Thank you for the well explained tutorial.
@anirudhkumar726
@anirudhkumar726 3 жыл бұрын
Hello sir, here we are using ip address on local system to access a windows server site as shown at the end (22:00) but if we want to access this site by some other name what do we do.
@muhammadasad.3600
@muhammadasad.3600 2 жыл бұрын
Thank you very much, Johny. Your video helped me alot
@paraskevaspetsanas5345
@paraskevaspetsanas5345 3 жыл бұрын
The best tutorial. Well explained! Thank you very much!
@lusonala7073
@lusonala7073 3 жыл бұрын
DUDE !!!!! YOU SAVED MY LIFE !!! THANK YOU SO SO MUCH !!! I WANNA DONATE, TO HELP YOU
@jonesth3
@jonesth3 2 жыл бұрын
Great Project thank you for your help. I did have one issue with some of the newer python updates. They now store the time zone info with the pub_date. Excel does not support timezones in the time_date field. There may be a more elegant way to fix this, but I just stripped the time code off by converting the value to a str and doing a split with the "+".
@SLEDGERSoftwareCompany
@SLEDGERSoftwareCompany 3 жыл бұрын
it works!!!... great video...
@Grunttamer
@Grunttamer 10 ай бұрын
Really great tutorial but you should replace that .bat with a requirements.txt and use a virtual environment to keep your python install clean
@hectorpatino9205
@hectorpatino9205 9 ай бұрын
I think the dame I dont know if he did it this way for the ddls Im gonna try tomorrow and check if it works. Two days struggling with this 🥲
@PR174M
@PR174M 4 жыл бұрын
Nice and Thorough video. It works. Thank you
@ManuelEnRed
@ManuelEnRed Жыл бұрын
Hola, es una forma sencilla de deplegar desde windows sin embargo la libreria crontab no me funciona corriendo sobre IIS, alguna solución?
@mehtabbandesha5637
@mehtabbandesha5637 Жыл бұрын
Will i need a VM if i am already on a Window 10 computer and will there be some extra steps ?
@christiankriedemann64
@christiankriedemann64 3 жыл бұрын
Very helpful. many thanks 🙏🏻
@Jakob1206
@Jakob1206 2 жыл бұрын
Great video and tutorial! Do any of you know how to configure multiple django apps on iis using different virtual environments? Can’t find anything on how to use different environments for different apps.
@lgtm2827
@lgtm2827 3 жыл бұрын
@1:35 IE be like "Am I a joke to you?"
@vincentverschuren3242
@vincentverschuren3242 3 жыл бұрын
you are my hero!!
@kaanbalkaya
@kaanbalkaya 2 жыл бұрын
Thanks a lot, that is so useful
@izenish
@izenish 2 жыл бұрын
This doesn’t seem to work with Django Rest framework with react frontend. Could anyone guide me through this! Deploying django rest framework under iis
@congchinh07
@congchinh07 Жыл бұрын
thanks Johnny
@bilawal6
@bilawal6 3 жыл бұрын
and its done. Thanks a lot
@jenilakoliya6567
@jenilakoliya6567 Жыл бұрын
Thank you so much for the video
@akki_the_tecki
@akki_the_tecki Жыл бұрын
how to do flask application?
@AlastorGarcia
@AlastorGarcia 3 жыл бұрын
Bro u the best! Thankssss
@hassanali9238
@hassanali9238 Жыл бұрын
I have deployed my django rest api , everything works fine but when i select data and send post request to api , page starts loading and after some time it shows error : HTtp error 500: internal server error . The FastCgi process exceeded configured activity timeout. Please help me with this
@hassanali9238
@hassanali9238 Жыл бұрын
Solution to this is : go to default application pool advance settings and add your administrator account in identify section. Thank you ❤
@oss2046
@oss2046 Жыл бұрын
where does the "web-config-template" file come from? Does it create itself or did you create it?
@Johnnyboycurtis
@Johnnyboycurtis Жыл бұрын
I made it
@oss2046
@oss2046 Жыл бұрын
@@Johnnyboycurtis thanks :)
@sharifahmed1925
@sharifahmed1925 4 жыл бұрын
Hi John, thanks for your tutorial :) Can you please create a tutorial for deploying on Linux configuring with a Database as well. Really appreciate it!
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
There are many guides on how to do this already. You may want to checkout Corey Schafer’s KZbin channel. He has a playlist for building and deploying a Django project
@shafiqurrehman8216
@shafiqurrehman8216 2 жыл бұрын
Hello sir i phase this error : 'pip' is not recognized as an internal or external command, operable program or batch file.
@Johnnyboycurtis
@Johnnyboycurtis 2 жыл бұрын
You don't have Python properly installed
@OthmanAlikhan
@OthmanAlikhan 3 жыл бұрын
Thanks for the video =)
@othmankabbaj9960
@othmankabbaj9960 3 жыл бұрын
Hi, I've followed your tutorial step by step and I keep getting a 500.0 error saying: FastCGI Quit unexpectedly, any guidance as to why I might be getting that? Looks like django is not even talking to IIS here
@eugenetuyizere5231
@eugenetuyizere5231 4 жыл бұрын
I followed well the process but my CSS files are missing in the app. What can I do?
@akki_the_tecki
@akki_the_tecki Жыл бұрын
this is because you might run ur django app in non-internet pc, so that the CDN links in the styles are not accessing the internet, so you do save the CDN links and redirect them to ur code. and that works fine now. I found that today mrng only , LOL But i want to know how is the flask app will open in IIS 🙁🙁🙁
@shansabitjourney127
@shansabitjourney127 4 жыл бұрын
Hi sir; I am thankful from your great and unique tutorial, but sir I faced to a problem, I used Django-Smart-Select in my project when I import ChainedForeignKey from smart_selects.db_fields (from smart_selects.db_fields import GroupedForeignKey, ChainedForeignKey) in modes.py file the web server give errors, I tested in both IIS, and Apache both of them give error. but normal case everything is good. would please help me sir, from two days I am working on it but I couldnot find any solution. thank you. The Apache errors(500 - Internal server error) IIS errors(Traceback (most recent call last): File "c:\python37\lib\site-packages\wfastcgi.py", line 791, in main env, handler = read_wsgi_handler(response.physical_path) File "c:\python37\lib\site-packages\wfastcgi.py", line 633, in read_wsgi_handler handler = get_wsgi_handler(os.getenv("WSGI_HANDLER")) File "c:\python37\lib\site-packages\wfastcgi.py", line 600, in get_wsgi_handler handler = __import__(module_name, fromlist=[name_list[0][0]]) File "C:\inetpub\wwwroot\webproject\webproject\wsgi.py", line 16, in application = get_wsgi_application() File "c:\python37\lib\site-packages\django\core\wsgi.py", line 12, in get_wsgi_application django.setup(set_prefix=False) File "c:\python37\lib\site-packages\django\__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "c:\python37\lib\site-packages\django\apps egistry.py", line 83, in populate raise RuntimeError("populate() isn't reentrant") RuntimeError: populate() isn't reentrant StdOut: StdErr: )
@amrirafik752
@amrirafik752 4 жыл бұрын
Thanks for this tutorial! Can you show us how to deploy a flask app on Windows using Microsoft IIS
@akki_the_tecki
@akki_the_tecki Жыл бұрын
did you get that.. please Iam in need....
@AllthingsFoodieTX
@AllthingsFoodieTX 2 жыл бұрын
question so is the iis server seperate or did you install django on the microsoft server as well or is that on another pc thanks
@Johnnyboycurtis
@Johnnyboycurtis 2 жыл бұрын
Everything is running on the same vm. IIS would require Django to be installed on the same VM.
@AllthingsFoodieTX
@AllthingsFoodieTX 2 жыл бұрын
@@Johnnyboycurtis great thanks so basically python Django are all on the Microsoft server as well as the iis config
@earnwhilelearn2941
@earnwhilelearn2941 4 жыл бұрын
Can you please make a video deployment of django app on azure
@chaitanyagokhale7702
@chaitanyagokhale7702 7 ай бұрын
will this work today too? Seems to be a 4 years ago tutorial.
@Johnnyboycurtis
@Johnnyboycurtis 7 ай бұрын
Still works as long as there haven’t been major changes
@zigooo_5611
@zigooo_5611 8 ай бұрын
isn't it possible to use virtual environment ?
@Johnnyboycurtis
@Johnnyboycurtis 4 ай бұрын
Yes
@ssandr1kka
@ssandr1kka 4 жыл бұрын
Could you please, also make a video where you enable media files? I kinda did the same as static to serve media, but I am surely doing it wrong
@ajaypratapyadav2418
@ajaypratapyadav2418 4 жыл бұрын
How to host two Django application on single iis?
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
You point to the different directories where your apps lie, then choose separate ports for them
@ajaypratapyadav2418
@ajaypratapyadav2418 4 жыл бұрын
@@Johnnyboycurtis yes, John i pointed in separate directory and my webconfig is also separate but giving me 500 errors. Of fastwsgi error. For python.exe I also given all the permission to iis user. I get stuck here. For single website is working fine, but for multiple I'm facing above error
@Saradomin65
@Saradomin65 4 жыл бұрын
@@ajaypratapyadav2418 Have you solved this yet? I'm facing the same issue here.
@ajaypratapyadav2418
@ajaypratapyadav2418 4 жыл бұрын
@@Saradomin65 no i haven't been solve the issue yet.
@gcaaoe9539
@gcaaoe9539 3 жыл бұрын
How do you change the port number from 80?
@WaleedTruman
@WaleedTruman 3 жыл бұрын
Thank you for this video but i need to show how can handle media files with iis
@pupaw2010
@pupaw2010 3 жыл бұрын
i setup everthing but im getting 404 when i navigate to \admin
@nikhilkhandelwal1947
@nikhilkhandelwal1947 3 жыл бұрын
Hi, I deployed the app on server but am not able to access it outside the VM
@Johnnyboycurtis
@Johnnyboycurtis 3 жыл бұрын
Make sure your VM can communicate with host
@venkatabharathkarnati5932
@venkatabharathkarnati5932 4 жыл бұрын
Thanks for the video it's explained clearly . 1. Do we need to have same name structure folders like inetpub/wwwroot ? 2. I need to add redis and celery in background do you have any solution for this that will be more helpful. 3. Can you expect another video explaining adding a new site and giving some name instead of localhost?
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
1. Yes 2. No, but there are plenty of other guides on Celery and other Django add-ons 3. Probably not. I'm a bit too busy. The point of this video was to illustrate basic steps to deploying a Django project on a Windows based platform. There are dozens of other useful guides that dive deeper into getting your project deploy-ready. For example, it sounds like you need a domain name. There are many tutorials that cover this. I recommend reviewing Corey Schafer's playlist on Django kzbin.info/www/bejne/l2WbqZibpJqJpM0
@venkatabharathkarnati5932
@venkatabharathkarnati5932 4 жыл бұрын
@@Johnnyboycurtis Thank you very much for you reply I am looking particularly in windows
@mohammedhassan-kx2yf
@mohammedhassan-kx2yf 2 жыл бұрын
hello anyone with this problem i succesfully deployed the first django application and it works perfectly however, i tried to deploy another django applicaiton and i can't get passed this error "HTTP Error 500.0 - Internal Server Error - The FastCGI process exited unexpectedly i suspect it has something to do with permissions but i changed and enabled permissions just like in the first web-app
@akki_the_tecki
@akki_the_tecki Жыл бұрын
Some one can tell me, How host for a FLASK APPLICATION please
@tajrianbintajahid7561
@tajrianbintajahid7561 4 жыл бұрын
Hello ! Amazing tutorial ! I have one question. If I want to use a real ip and a domain name for people accessing my web-project,how do I do that ?
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
The purpose of this tutorial was to show how to "connect" a Django project with one of the server options. There are other tutorials that cover that information in detail for example kzbin.info/www/bejne/emPPqJ5nitCasJI
@sharadbee3813
@sharadbee3813 3 жыл бұрын
Why we are using google cloud platform here, Can't we do this with iis standalone?
@Johnnyboycurtis
@Johnnyboycurtis 3 жыл бұрын
Google Cloud is used to create a clean VM. It’s up to you to decide where to host your server (locally or in the cloud)
@Saradomin65
@Saradomin65 4 жыл бұрын
Wait, should'nt we make a virtual environment and install all the dependencies of the project to that virtual environment? At least that's how I did it when I tried deploying it to Ubuntu.
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
Yes. This is only an illustration of the basics. Trying to keep it as simple as possible.
@Saradomin65
@Saradomin65 4 жыл бұрын
@@Johnnyboycurtis Thanks for the reply, I'm trying it right now, hopefully all works well else I'm gonna stratch my head off.
@Saradomin65
@Saradomin65 4 жыл бұрын
@@Johnnyboycurtis Hey bro, another question. How can you deploy multiple project websites using IIS? Are the procedures the same?
@magichatake
@magichatake 4 жыл бұрын
I have IIS. Even following your video I stepped on a error telling that could not find the script processor...
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
Then you did not follow everything step by step, or you are using a Windows set up with settings different from a "blank" Windows VM. I suggest you create a Windows VM, download the GitHub repo and try again. Follow every single step closely.
@magichatake
@magichatake 4 жыл бұрын
@@Johnnyboycurtis thanks man. I managed to solve the issue. I had to properly reinstall python on c:\ instead of c:\program files
@moyeda.m.chowdhury5336
@moyeda.m.chowdhury5336 3 жыл бұрын
By this time you already know what you did in and with this video is awesome! I am just extending the acknowledgment. Everything works but there's one problem I'm facing is when I try to export the file as excel I get a Server Error (500). Any idea why that might be?
@Johnnyboycurtis
@Johnnyboycurtis 3 жыл бұрын
No idea. It’s just the export? You would need to follow the trace back. Make sure Debug = True to view the trace back
@moyeda.m.chowdhury5336
@moyeda.m.chowdhury5336 3 жыл бұрын
@@Johnnyboycurtis I'm terribly sorry for getting back this late! (Debug: can't subtract offset-naive and offset-aware datetimes) It seems that I was having some issues with the "TIME_ZONE = True", I made it false and it worked. Need to study deeper. Thanks :)
@dippydevices2792
@dippydevices2792 4 жыл бұрын
Hi John.. Firstly congratualtions and thank you for an amazing tutorial.. I need help with win32com.. My app works with outlook and works perfect on local server.. However on the VM, it doesn't and gives me error about win32com error.. Is it because Outlook is not installed on the server machine? Is there a workaround to get over this. Please help.. I am using pywin32
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
If your server is not a Windows based machine without Outlook (or whatever application it needs access to) installed then you will receive that error. Attempt running the application in development mode first (e.g. python manage.py runserver)
@abo.elfotouh
@abo.elfotouh 4 жыл бұрын
I got an issue with media images after deployment ... any recommendations
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
That depends on the issue. Can you elaborate? (please don't paste code here)
@abo.elfotouh
@abo.elfotouh 4 жыл бұрын
@@Johnnyboycurtis thanks I resolve the problem .. by add media as virtual directory and specify web.config to deal with it as static files
@ajaypratapyadav2418
@ajaypratapyadav2418 4 жыл бұрын
John, I tried to host two Django application but not working, giving 500 error
@crgross10
@crgross10 4 жыл бұрын
my css, jquery files isn't loading, can you help me? net::ERR_ABORTED 404 (Not Found)
@pupaw2010
@pupaw2010 3 жыл бұрын
my \admin page is not found
@delianasre6603
@delianasre6603 4 жыл бұрын
Video contents not show properly,please increase the font size whenever you will make. Video. Otherwise its nice.
@javig.3793
@javig.3793 3 жыл бұрын
thx u
@trickllorente1063
@trickllorente1063 4 жыл бұрын
is nginx is working?
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
yes
@trickllorente1063
@trickllorente1063 4 жыл бұрын
@@Johnnyboycurtis thanks for the reply .. great vid btw, auto subscribe
@akki_the_tecki
@akki_the_tecki Жыл бұрын
no its not. now
@gauravabhishek3930
@gauravabhishek3930 4 жыл бұрын
Exception Type: UnsupportedOperation Exception Value: fileno while trying to upload a pic using Django website to AWS s3. It perfectly works on Django default 'runserver' but gives this error when on IIS Server. Please Help and Thanks a lot for this video
@rashika7188
@rashika7188 2 жыл бұрын
did you find solution for this , i am also getting this error
@gauravabhishek3930
@gauravabhishek3930 2 жыл бұрын
@@rashika7188 i guess i changed my server after that 🤣
@rashika7188
@rashika7188 2 жыл бұрын
@@gauravabhishek3930 ok thanks for the information
@gauravabhishek3930
@gauravabhishek3930 2 жыл бұрын
@@rashika7188 try Apache
@rashika7188
@rashika7188 2 жыл бұрын
@@gauravabhishek3930 :) sure
@manasnim
@manasnim 4 жыл бұрын
how to use this with python38?
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
install python38
@manasnim
@manasnim 4 жыл бұрын
@@Johnnyboycurtis Now I can use your webproject. But page isn't same your page on youtube, there is not center as yours. It is align left of page.
@manasnim
@manasnim 4 жыл бұрын
@@Johnnyboycurtis Now I can use your webproject. But page isn't same your page on youtube, there is not center as yours. It is align left of page.
@manasnim
@manasnim 4 жыл бұрын
and no line of table of data. why?
@drpando
@drpando 4 жыл бұрын
2 freakin weeks of bouncing all over the internet, StackOverflow, countless KZbin videos (ALL of which "touched" on the same edits, config files, wfastCGI, unlocking, etc. etc. ad nauseum.) NONE worked!!!! EXECPT YOURS!!!!! My website workes perfectly with IIS (Python 3.8.3, latest Django)
@Johnnyboycurtis
@Johnnyboycurtis 4 жыл бұрын
Thanks buddy, glad I was able to help :)
@SingleIndexArray
@SingleIndexArray 4 жыл бұрын
i spent the entire year bouncing around, nothing helped. this video was a life saver indeed
@akki_the_tecki
@akki_the_tecki Жыл бұрын
how to do for a flask applic?
@ziaurrehmanakhtar
@ziaurrehmanakhtar 2 жыл бұрын
when i run python manage.py collectstatic command i got errors raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
@Johnnyboycurtis
@Johnnyboycurtis 2 жыл бұрын
Looks like you need to configure STATIC_ROOT
@harinikumar9133
@harinikumar9133 10 ай бұрын
When I type localhost it gives not found error , Can you help me?
Deploying Django App on Windows IIS: Step-by-Step Guide
28:14
GAURAV KUMAR JAIN
Рет қаралды 5 М.
Your Remote Desktop SUCKS!! Try this instead (FREE + Open Source)
22:30
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 362 М.
How To Deploy Django on Windows server Using Apache
20:37
Learn Python
Рет қаралды 23 М.
the ONLY way to run Deepseek...
11:59
NetworkChuck
Рет қаралды 701 М.
How To Create Python Django Website In Windows Server IIS and Wfastcgi
12:27
The Man Behind DeepSeek (Liang Wenfeng)
18:03
East Money
Рет қаралды 343 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 46 М.
Day-25  | Docker Containerzation for Django | #django #python #devops
28:34
Abhishek.Veeramalla
Рет қаралды 124 М.
Django Tutorial for Beginners - Build Powerful Backends
1:02:36
Programming with Mosh
Рет қаралды 2,8 МЛН
NGINX Tutorial for Beginners
51:03
freeCodeCamp.org
Рет қаралды 333 М.