This guide will walk you through setting up a Django project using Visual Studio Code (VS Code) on a Windows system.
Make sure you have the following installed on your system
- Python (3.8+ recommended)
- Pip (usually comes with Python)
- Download Vs Code
- Git (optional, for version control)
Open your command prompt and install Django using pip:
pip install django
Create a new directory for your Django project and navigate into it:
mkdir my_django_project
cd my_django_project
It's a good practice to create a virtual environment for your project to manage dependencies:
python -m venv venv
Activate the virtual environment:
- For Command Prompt:
venv\Scripts\activate
- For PowerShell:
.\venv\Scripts\Activate.ps1
Once the virtual environment is activated, install Django:
pip install django
Create a new Django project named myproject:
django-admin startproject myproject .
Open your project folder in Visual Studio Code:
code .
python manage.py runserver
Your app is up and running! Here's what you need to know to get started.
For detailed information on how to use and customize this app, refer to the documentation .