The problem

I needed one place to show my projects, certificates and learning journey that I could update quickly without touching the database or the admin panel every time.

The solution

A Django site where portfolio content lives in version-controlled JSON files, while only truly dynamic data (contact messages, resume uploads) uses the database. Pages are server-rendered with Django templates, enhanced with HTMX for live project search and GSAP for animations.

How it works

Architecture & flow

  1. 1

    Request hits Vercel and is routed to Django through api/wsgi.py

  2. 2

    URL router sends it to a view in portfolio_app/views.py

  3. 3

    The content loader reads JSON files through Django's cache (keyed by file modification time)

  4. 4

    The view renders a Django template; HTMX requests get only a partial template

  5. 5

    WhiteNoise serves compressed static files; Postgres stores contact messages

Problems I hit

Challenges and how I solved them

Challenge 1

Editing projects required database migrations and admin work, and content was lost between deployments.

How I fixed it

Moved portfolio content to JSON files with a validated loader and a validate_content management command.

Challenge 2

Reading and parsing JSON on every request is wasted work.

How I fixed it

Added Django caching with a key that includes the file's modification time, so edits invalidate the cache automatically.

Challenge 3

Filtering projects reloaded the whole page.

How I fixed it

Used HTMX to swap only the project grid, while still pushing the URL so filters stay shareable and work without JavaScript.

Results

  • Content updates are a single JSON edit and a git push
  • Project search and filters update instantly without page reloads
  • Deployed on Vercel with environment-based production settings

What I learned

  • Choosing the right storage for each kind of data (files vs database)
  • Cache invalidation strategies
  • Progressive enhancement with HTMX
  • Production Django settings: secrets, HTTPS, static files

Project Overview

A personal portfolio website built with Django using the MVT architecture. The project now uses a file-based content layer for portfolio pages, so projects, skills, certifications, achievements, and education can be updated through JSON files without pushing that content into database tables.

Key backend features

  • File-based content loading for portfolio sections.
  • Django templates for server-rendered pages.
  • Contact form with validation, spam protection, email delivery, and database-backed message storage.
  • Resume download endpoint using Django FileResponse.
  • Admin panel kept only for contact messages, resume uploads, and Django user management.
  • Static asset delivery through WhiteNoise for Vercel deployment.
  • Environment-based configuration for secrets, database, email, and production security.

Why it matters

This project demonstrates a practical hybrid Django architecture: static portfolio content stays version-controlled in external files, while truly dynamic operational data remains in the database.

What's next

  • Add a blog / learning log from Markdown files
  • Add GitHub Actions CI to run tests on every push
Related

More web application projects