Getting Started with Django

Welcome to the "Getting Started with Django" tutorial. In this guide, you will learn the basics of Django, including installation, project setup, and creating your first app.

Step 1: Installation

To install Django, you need to have Python installed on your system. You can install Django using pip:

pip install django

Step 2: Creating a Project

Once Django is installed, you can create a new project using the following command:

django-admin startproject myproject

Step 3: Running the Development Server

Navigate to your project directory and run the development server:

cd myproject
python manage.py runserver

Open your web browser and go to http://127.0.0.1:8000 to see your new Django project in action.

Step 4: Creating an App

To create a new app within your project, use the following command:

python manage.py startapp myapp

Follow the Django documentation to learn more about creating views, templates, and models for your app.