Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 803 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 803 Bytes

Django

--> To Install and Use Django, you need to install python firstly.
--> After successfull installation of python

Use This command to create virtual environment
--> py -m venv "environment-name"
To activate the virtual environment in CMD, use
--> environment-name\Scripts\activate.bat
To switch to the virtual environment in VS Code, use
--> environment-name/Scripts/Activate.ps1

After switching to the virtual environment, install Django using the command:
--> pip install django

Now start a project of your own, by using command
--> django-admin startproject projectname

To run the project, you must use the default name "manage.py"
--> python manage.py runserver "port-number(what you wish)"