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.

Orange County Lettings exposes Django’s built-in administration interface so that authorised staff members can manage all application data without writing code. The admin panel provides a full CRUD interface — list, add, change, and delete — for every registered model.

Accessing the admin panel

The admin panel is available at the /admin/ path of your running instance.
EnvironmentURL
Developmenthttp://localhost:8000/admin
Productionhttps://<your-domain>/admin
To log in during development, use the default superuser credentials:
  • Username: admin
  • Password: Abc1234!
Change the default admin password before deploying to a public environment. The default credentials are well-known and leave your application open to unauthorised access. Use python manage.py changepassword admin or update the password directly in the admin panel under Authentication and Authorization → Users.

Registered models

The following models are registered in admin.py and are therefore manageable through the admin panel:
from django.contrib import admin
from .models import Letting, Address, Profile

admin.site.register(Letting)
admin.site.register(Address)
admin.site.register(Profile)
ModelDescription
LettingHoliday home listings — title and linked address
AddressPostal addresses associated with individual lettings
ProfileUser profiles extending Django’s built-in User model

Available actions

For each registered model the admin panel provides four standard operations:
1

List

View a paginated table of all existing records for a model, with search and filter controls.
2

Add

Submit a form to create a new record. Required fields are validated before saving.
3

Change

Open an existing record in an editable form and save your changes.
4

Delete

Permanently remove a record. Django will display any related objects that will also be affected before confirming the deletion.
Only Django users with is_staff=True can log in to the admin panel. To grant a user staff access, set their is_staff flag to True via python manage.py shell or by editing the user record in the admin panel itself under Authentication and Authorization → Users.

Explore other features

Holiday home listings

Browse all available rental properties and view their full addresses.

User profiles

Browse registered user profiles and their favorite city preferences.

Build docs developers (and LLMs) love