Quick Start Guide
Step 1: Installing Python
-
Download Python:
- Go to the Python website and download the latest version.
-
Run the Installer:
- For Windows, check "Add Python to PATH" during installation.
- For macOS, use Homebrew:
brew install python
-
Verify Installation:
python --version
Step 2: Setting Up a Virtual Environment
-
Create Virtual Environment:
python -m venv myenv
-
Activate the Virtual Environment:
- Windows:
myenv\Scripts\activate
- macOS/Linux:
source myenv/bin/activate
- Windows:
Step 3: Installing Django
-
Install Django:
pip install django
-
Verify Installation:
python -m django --version
Step 4: Creating a Django Project
-
Start a New Project:
django-admin startproject myproject
-
Navigate to Your Project:
cd myproject
-
Run the Development Server:
python manage.py runserver
- Access your project at
http://127.0.0.1:8000/
.
- Access your project at
Conclusion
You've successfully installed Python and Django, and set up your first project. Happy coding!