littleflute / youtube

0 stars 0 forks source link

How to install Django on Windows 10(Django 2.1) #2

Open littleflute opened 4 years ago

littleflute commented 4 years ago

https://www.youtube.com/watch?v=FMJ38c8Tkv8

littleflute commented 4 years ago

as you probably know by now I recently started to learn Python and I also decided to learn Django to better understand how web applications work and how front-end and back-end work together on an awesome tutorial on udemy and started to learn it unfortunately it only shows you how to install Django on Linux and I still have a Windows machine at home to play games mostly so I will show you how to install Django on Windows 10 and get started with the full stack development environment it's the first time for me installing Django on Windows 10 as well but I have the official documentation oh man let's see how easy it is to follow that I assume that you have Python 3.7 or whatever is the newest version already installed and that you have selected add to path while you were installing it you can leave everything on default while installing pardon and just need to put this little check mark at two path I think it's even selected by default now in the newer versions so make sure you have Patton installed and let's get started with the installation the first thing we need to do is we need to go ahead and install him open my web browser enter this address and you want to right click the gas - pip dot py file and click on save link s for you it's a fling guess I have the German browser in here apparently you can install the non-english whatever just make sure you save it as a Python file click on save and you see that it's a Python file actually downloaded next you need to go ahead and open a PowerShell window with administrative rights so type PowerShell and write to get run as administrator that opens PowerShell as an administrator then you need to go somehow to your downloads folder which you can easily do by typing CD C column and backslash and then users and you can always press the tab key to auto-complete and then your username so if you don't know what a reason M is just hit the tab button and you will see all your available users there and then downloads and once you are in there we have to Python get - pip dot py and it shouldn't stop him if title is correctly installed and added to path for you it should be doing what is doing here and we are done now that we have installed pip we can go ahead and run a whole couple of new instructions or commands so we clear the screen here and we will install the virtual and wrapper which is recommended on the official Django document documentation so type pip install which should work now see virtual and wrapper - win and it should be doing it yes it's doing it awesome as I said it's the first time for me to I just follow the documentation and see if it works then you want to type and make probably virtual and and my project or test project now it's creating a new folder and you can see or make a new environment probably and it's creating it in here programs pilot in five and 3.7 best project that's installing some setup tools and the installation is done next you need to do work on and type test project or whatever the project name was to set the path course we can just go ahead and install Django with pip let's clear the screen first pip install Django and it's downloading Django a couple of seconds later the installation is finished and we can check if it everything worked and everything is installed correctly we can tap Django admin admin - - version and we should get the installed version of Django which is two point one point five so this was pretty easy Django is installed everything works this is how to install the Django on Windows 10 I thought it would be more difficult but it was actually really easy if you liked the video give it a thumbs up please also consider subscribing to the channel as I go I will probably maybe publish more Python or Django tutorials depending on how much I will actually work with it so if you like that kind of content leave a comment below if you want to see more of Django and Python also leave a comment and again thanks for watching see you in the next video