Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/OpenClassrooms-Student-Center/Python-OC-Lettings-FR/llms.txt

Use this file to discover all available pages before exploring further.

Setting up a local environment lets you run, modify, and test Orange County Lettings on your own machine. The steps below walk you through cloning the repository and creating an isolated Python virtual environment so project dependencies do not interfere with your system Python.

Prerequisites

Before you begin, make sure the following tools are available on your machine:
  • Git — to clone the repository
  • Python 3.6 or later — the interpreter used to run the application
  • SQLite3 CLI — to inspect the development database

Create the virtual environment

1

Clone the repository

git clone https://github.com/OpenClassrooms-Student-Center/Python-OC-Lettings-FR.git
2

Change into the project directory

cd Python-OC-Lettings-FR
3

Create the virtual environment

python -m venv venv
If this fails on Ubuntu with a missing-package error, install the required system package first:
apt-get install python3-venv
Then re-run python -m venv venv.
4

Activate the virtual environment

source venv/bin/activate
5

Verify the Python interpreter

Confirm that python resolves to the interpreter inside the virtual environment:
which python
python --version
The path returned by which python should point inside the venv/ directory, and the version should be 3.6 or higher.
6

Deactivate when done

When you finish working, deactivate the virtual environment:
deactivate
Always activate the virtual environment before running any project commands (pytest, flake8, python manage.py, etc.). Without activation, commands will use your system Python and may not find the required packages.

Next steps

Quickstart

Install dependencies and run the development server.

Build docs developers (and LLMs) love