A small Django project that serves example fake identities. It uses database.json file for local development and includes one app, identity, which provides views, templates and static assets for listing and viewing identities.
- Django project:
fake_identities - App:
identity(contains views, templates, static files) - database.json:
db.sqlite3(default development DB) - Sample data:
identity/database.json
- Python 3.8+ (3.10+ recommended)
- pip
- A virtual environment tool (venv, virtualenv, pipenv, or poetry)
-
Clone the repository and change into the project folder.
-
Create and activate a virtual environment:
- Windows (PowerShell):
python -m venv .venv .\.venv\Scripts\Activate.ps1
- MacOS/Linux (bash):
python -m venv .venv
source .venv/bin/activate-
Install dependencies:
pip install -r requirements.txt -
Run the development server:
python manage.py runserver
Open http://127.0.0.1:8000/ in your browser. The app's root views are defined in fake_identities/urls.py and identity/urls.py.
manage.py— Django CLI entrypointfake_identities/settings.py— Django settingsfake_identities/urls.py— project URL confidentity/— Django app with models, views, templates and static assetsidentity/database.json— sample fixture dataidentity/templates/identity/— templates for listing and detail pagesidentity/static/identity/— CSS, images and icons
For production or when needed, collect static files:
python manage.py collectstaticGodwin Jules
🌍 Développeur Web