Steps to Setup Django in your PC with example.
Django Setup Step-1 . Make folder named "Admin panel" . open cmd in "Admin panel" folder. Note: you can choose any name for your folder. Step-2 . Write following command in cmd: “python –m venv myvenv” Step-3 . Write second command: “myvenv\scripts\activate” Step-4 . Write third command: “pip install django” (note-connect your pc with internet then run above command) Step-5 . Write fourth command: “Django-admin s Startproject project . ” You can see the following folders are being made in folder ‘Admin panel’ : Folders: myenv, project File: manage.py Step-6 . 5 th command: “python manage.py startapp app” You can see ‘app’ folder being made in ‘ Admin panel ’ folder . Step-7 . 6 th command: “code .” (note : 1 space is between ‘code’ and ‘.’) This command will open ‘vs-code’ app if it is installed in your pc. (if vs-code not installed in your pc t...


Comments
Post a Comment