[Solved] Django-admin is not recognized as an internal or external command Using Virtual Environment

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
uh Hello friends today in this tutorial I will be showing you the solution of this problem which comes right here Django admin and if you just type this command guys and this command will not work inside your computer you will see there is this error message will come Django admin is not recognized as an internal or external command so first of all guys we need to create an virtual environment for our python project so how to create that virtual environment it is very much all the commands that I have given in the description of the video guys you can refer my blog post where step by step I have given these commands so first of all you need to create the virtual environment guys so right here I will open this inside my visual studio code text editor so you will not see any sort of Django project created it is not there so first of all Now to create this virtual environment guys we will simply come on write this Python and then we will say Dash M and then v e and V so this stands for virtual environment and now you can name this virtual environment anything let's suppose I name it as sample so now you can see that guys your virtual environment in this folder will be created guys you will see that it will take some time and after that it will create this virtual environment so inside this virtual environment guys it contains these three folders include library and scripts so we need to activate this script guys activate this environment so we need to go into the scripts folder and activate it so now what we will do is that here we will send first of all simply go to the sample virtual environment CD and we will CD into this and then we will go into the script folder guys so we will simply write CD scripts so we will go into the scripts folder and simply we will type here activate so this little guys as you write this activate here this will execute this activate dot bat file and it will activate your virtual environment inside python so if I write right here inside the left hand side inside the parentheses you will see you have successfully activated your virtual environment inside python now you will need to create your Django project guys so you can now simply first of all install Django by installing pip install and now you can write Django so this will install the Django project guys from the PIP dependency manager it will install all these packages related to this environment and now you can write Django admin and create your project so you will say Django admin start project and then we will say sample app so now this will create this uh I think what we need to do is that we need to move out of this directory so I think we need to come out of this directory right here okay so CD Scripts so we need to go into the sample app directory it has created so now you can see that guys it has created your Django admin project so after you just executed that command guys whatever Django admin start project sample app so this will create that folder you need to Simply go into that folder CD sample app and we have opened this inside Visual Studio code text writer so this is your Django project guys it has created so if you are facing the similar problem you need to first of all activate your virtual environment by the commands that I've shown you still if you have problem you can refer my blog post which is given in the description of this video so thank you very much guys for watching this short little video
Info
Channel: Coding Shiksha
Views: 6,879
Rating: undefined out of 5
Keywords: coding shiksha
Id: gi626FAeQys
Channel Id: undefined
Length: 3min 49sec (229 seconds)
Published: Mon May 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.