Developer Portfolio
Full-Stack Django Application
This website: a Django application with admin-managed projects, skills and resume, and a validated, rate-limited contact form.
- Python
- Django
- HTML
- JavaScript
- CSS
Overview
This portfolio is a full-stack Django application. Every piece of content, from the profile and skills to project case studies and the resume PDF, is stored in the database and edited through the Django admin, so updating the site never requires changing code.
The frontend is server-rendered Django templates with hand-written CSS and a small amount of vanilla JavaScript for the mobile menu and active-section navigation.
Problem statement
A static portfolio goes stale because every change needs a code edit and a redeploy. This project treats the portfolio as a small content-managed application, and uses it to demonstrate backend practices: relational models, validated forms, security settings, automated tests, and production configuration.
Technical architecture
The project is split into three Django apps. core holds the developer profile, skills, home and resume pages, sitemap and robots.txt. projects holds the Project and ProjectScreenshot models and their list and detail pages. contact holds the ContactMessage model, the ModelForm, and the submission view.
Configuration comes from environment variables: SQLite locally, PostgreSQL in production through DATABASE_URL, static files served by WhiteNoise, and the application run by Gunicorn. Production mode enables HTTPS redirects, HSTS, and secure cookies.
Database design
Project has a many-to-many relationship with Skill through its technologies field, so one skill can tag many projects and one project can use many skills. ProjectScreenshot has a foreign key to Project, giving each project an ordered gallery. Skill names are unique regardless of letter case through a database constraint, and project slugs are unique.
Views load technologies with prefetch_related, so a page of projects costs a fixed number of queries instead of one extra query per project.
Key functionality
- Database-driven profile, skills, projects, and resume content
- Django admin with search, filters, inline screenshots, and publish/unpublish actions
- Project case-study pages with unpublished projects hidden from visitors
- Contact form built on a ModelForm with server-side validation and CSRF protection
- Post/Redirect/Get after a successful submission
- Spam prevention with a honeypot field and a signed form timestamp
- Per-IP submission rate limiting
- Optional email notification that never blocks saving the message
- Resume PDF upload with extension, size, and file-signature validation
- Print-friendly resume page
- Sitemap, robots.txt, Open Graph tags, and custom 404 and 500 pages
- Idempotent seed_portfolio management command
- Automated test suite
Technologies used
- Python
- Django
- HTML
- JavaScript
- CSS
Technical challenges
Spam without CAPTCHAs
A hidden honeypot field and a signed timestamp that rejects submissions sent within seconds of the page loading stop most automated spam without adding friction for real visitors.
Email that cannot lose messages
The message is saved to the database first; the optional notification email runs afterwards and its failures are logged, not shown to the visitor.
Re-runnable seed data
The seed command only creates records that are missing, so running it again after editing content in the admin never overwrites those edits.
Setup instructions
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
python manage.py migrate
python manage.py seed_portfolio
python manage.py createsuperuser
python manage.py runserver
More projects
StockFlow
Inventory & Order Management System
A database-driven inventory and order management application for products, categories, stock movements, and customer orders.
- Python
- Django
- SQLite
- Django ORM
- Product and category management
- Product search and filtering
- Stock movement tracking
SpendWise
Personal Finance REST API
A RESTful backend for managing personal financial transactions and expense categories, with validated requests and interactive API docs.
- Python
- FastAPI
- SQLite
- SQLAlchemy
- Pydantic
- Transaction CRUD endpoints
- Category management
- Relational database models