TIDE
Frameworks

Django

How to install and run Django (Python) in TIDE

Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of web development.

Prerequisites

Ensure you have Python installed. Check out the Python installation guide for instructions.

Installation

It is best practice to install Django within a Python virtual environment to keep your dependencies isolated.

# Create and activate a virtual environment
python3 -m venv myenv
source myenv/bin/activate

# Install Django using pip
pip install django

Creating a Project

Once Django is installed, you can create a new project:

django-admin startproject mywebsite
cd mywebsite

Running the Development Server

Start the Django development server:

python manage.py runserver

By default, the server runs on http://127.0.0.1:8000/. You can view it directly from your device!

On this page