SETTING UP ENVIRONMENT

1. Install Python

  • Check if Python is installed:

    python --version

    or

    python3 --version
     
  • Install Python (if not already installed):

    • Download Python from the official website.
    • Follow the installation steps for your operating system.
    • Ensure you check the box Add Python to PATH during installation.
  • Verify Installation:

    python --version
     

2. Create a Virtual Environment

  1. Create the virtual environment:

    python -m venv .venv
     

    This will create a folder named .venv in your current directory to isolate your project environment.

  2. Activate the virtual environment:

    • For Windows:
    .venv\Scripts\activate
    • For macOS/Linux:
    source .venv/bin/activate
     

    Once activated, you will see the virtual environment name (e.g., (.venv)) in your terminal prompt.

3. Install Django

  1. Install Django inside the virtual environment:

    pip install django
  2. Verify Django Installation:

    django-admin --version
     

    This command should return the version of Django installed.

Discussion
very usefull and helpful resources helped me a lot

1

Thank you, Shaktesh! Glad to hear it was helpful. Keep learning and growing!

1

20

1