← Back to Django Course | Chapter 1: Django Fundamentals & Setup | Lesson 3 of 9

Django Install करना

Django install करना अपने phone पर एक app download करने जैसा है, सिर्फ आप इसके लिए अपने computer पर एक special command उपयोग करते हैं।

यह जांचना कि 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.

bash
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 कर देता है।

Note: हमेशा पहले अपना virtual environment activate करें ताकि Django वहां install हो, globally नहीं।

उदाहरण: Installing Django With pip

Installs the Django package using pip.

bash
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.

bash
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.

bash
pip list

⚠️ Run this in your own terminal or Node.js environment.

Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. Django को virtual environment के अंदर उपयोग करने के बजाय globally install करना, जो projects के बीच version conflicts का कारण बनता है।
  2. पहले Python install करना भूल जाना, क्योंकि Django को पहले से system पर Python चाहिए।
  3. 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 चाहिए।

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.