Django Install करना
In this page:
यह जांचना कि Python Installed है
Django install करने से पहले आपको Python खुद installed चाहिए, क्योंकि Django एक Python package है; Python version जांचना confirm करता है कि यह ready है।
उदाहरण: Checking Python Is Installed
Runs the Python version command in the terminal to confirm Python is installed.
python --version
⚠️ Run this in your own terminal or Node.js environment.
pip से Django Install करना
pip Python का package installer है, और "pip install django" run करना latest Django package आपके system या virtual environment पर download और install कर देता है।
उदाहरण: Installing Django With pip
Installs the Django package using pip.
pip install django
⚠️ Run this in your own terminal or Node.js environment.
Installation Verify करना
Install करने के बाद, "django-admin --version" run करना installed Django version print करता है, confirm करते हुए कि installation succeed हुई।
उदाहरण: Verifying the Installation
Prints the currently installed Django version to confirm the install worked.
django-admin --version
⚠️ Run this in your own terminal or Node.js environment.
Installed Packages जांचना
Command "pip list" current environment में installed हर package दिखाता है, जो यह confirm करने का एक तेज़ तरीका है कि Django अपनी dependencies के साथ दिखाई दे रहा है।
उदाहरण: Checking Installed Packages
Lists all installed Python packages, including Django, in the current environment.
pip list
⚠️ Run this in your own terminal or Node.js environment.
- Django को virtual environment के अंदर उपयोग करने के बजाय globally install करना, जो projects के बीच version conflicts का कारण बनता है।
- पहले Python install करना भूल जाना, क्योंकि Django को पहले से system पर Python चाहिए।
- Installation के बाद installed Django version न जांचना यह confirm करने के लिए कि यह काम कर गया।
- Django Python के package manager, pip, उपयोग करके install किया जाता है।
- आपको Django एक virtual environment के अंदर install करना चाहिए, globally नहीं।
- Command "django-admin --version" एक successful installation confirm करता है।
- Django को पहले से एक compatible Python version installed चाहिए।
Chapter Quiz — Complete all 9 topics to unlock
0/9 topics done
Complete these topics first: