Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Adornadowilliam2/d817534c2ccd8fecc3687bacd53f2ae7 to your computer and use it in GitHub Desktop.
Save Adornadowilliam2/d817534c2ccd8fecc3687bacd53f2ae7 to your computer and use it in GitHub Desktop.
How to install django in command prompt or cmd
#first to able know if the python is install type in command prompt or cmd
python --version
#then allso check is the pip has been instsall as it must be install once you downloaded the python but incase there is not
pip --version
#after that you need to create a folder for the django using command prompt, becuase why not go to back filde manager to create folder
mkdir django
#then to be able go to that folder use:
cd django
#afterthat you can now do this command one by one to be able install the django (Just copy paste it into your command prompt).
python -m venv my_venv
pip install django
#then once this message "Successfully installed asgiref-3.8.1 django-5.0.6 sqlparse-0.5.0 tzdata-2024.1", ypou now type this code
django-admin version
#and to able create a project use this command
jango-admin startproject my_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment