# jonas-y-issa/portfoliowebsite-django architecture

> Architecture diagram of the GitHub repository jonas-y-issa/portfoliowebsite-django, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jonas-y-issa/portfoliowebsite-django
- Repository: https://github.com/jonas-y-issa/portfoliowebsite-django

## Overview

This is a Django-managed personal portfolio with two public delivery modes: a live homepage and a generated static Pages package. The main workflow is visitor → homepage route/view → portfolio records → rendered template/assets; the editing workflow uses Django admin, while export_pages renders the same view and copies static assets for upload. README documents galleries, skills/about/projects, and client-side interactions. Some templates and routing details were not excerpted, so edges rely only on shown code or README statements.

Main entry points: [`templates/Index.html`](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/templates/Index.html) (Homepage template), [`myapp/views.py`](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/views.py) (Homepage view), [`myapp/management/commands/export_pages.py`](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/management/commands/export_pages.py) (Pages exporter), [`MyWebsite/settings.py`](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/settings.py) (Site configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web runtime"]
  node_django["Django runtime<br/>[asgi.py]"]
  node_settings["Site configuration<br/>[settings.py]"]
  node_proxy["Trusted proxy filter<br/>[middleware.py]"]
  node_routing["Site routes<br/>[urls.py]"]
  node_app_routes["Portfolio routes<br/>[urls.py]"]
end

subgraph group_content["Portfolio content"]
  node_homepage["Homepage view<br/>[views.py]"]
  node_records[("Portfolio records<br/>[models.py]")]
  node_admin["Content admin<br/>[admin.py]"]
  node_gallery["Project galleries<br/>[models.py]"]
end

subgraph group_delivery["Static publishing"]
  node_exporter["Pages exporter<br/>[export_pages.py]"]
  node_static_assets["Source assets"]
  node_pages["Static Pages site"]
end

subgraph group_experience["Visitor experience"]
  node_homepage_template["Homepage template<br/>[Index.html]"]
  node_base_template["Shared page shell<br/>[base.html]"]
  node_client_interactions["Portfolio interactions<br/>[portfolio.js]"]
  node_shared_styles["Shared styling"]
  node_homepage_styles["Section styling"]
end

node_visitor(("Visitor"))
node_cloudflare["Cloudflare Pages"]

node_visitor -->|"requests page"| node_routing
node_routing -->|"includes routes"| node_app_routes
node_app_routes -->|"routes to"| node_homepage
node_homepage -->|"queries content"| node_records
node_homepage -->|"renders"| node_homepage_template
node_homepage_template -->|"loads shell"| node_base_template
node_homepage_template -->|"loads styles"| node_shared_styles
node_homepage_template -->|"loads styles"| node_homepage_styles
node_homepage_template -->|"loads script"| node_client_interactions
node_admin -->|"edits records"| node_records
node_settings -->|"configures middleware"| node_proxy
node_settings -->|"selects routes"| node_routing
node_django -->|"loads configuration"| node_settings
node_homepage -->|"prefetches gallery"| node_gallery
node_exporter -->|"renders homepage"| node_homepage
node_exporter -->|"checks projects"| node_records
node_exporter -->|"copies assets"| node_static_assets
node_exporter -->|"generates site"| node_pages
node_pages -->|"uploaded to"| node_cloudflare

click node_django "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/asgi.py"
click node_settings "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/settings.py"
click node_proxy "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/middleware.py"
click node_routing "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/urls.py"
click node_app_routes "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/urls.py"
click node_homepage "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/views.py"
click node_records "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/models.py"
click node_admin "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/admin.py"
click node_homepage_template "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/templates/Index.html"
click node_base_template "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/templates/base.html"
click node_client_interactions "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/static/base/scripts/portfolio.js"
click node_shared_styles "https://github.com/jonas-y-issa/portfoliowebsite-django/tree/master/myapp/static/base/css"
click node_homepage_styles "https://github.com/jonas-y-issa/portfoliowebsite-django/tree/master/myapp/static/homepage/css"
click node_gallery "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/models.py"
click node_exporter "https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/management/commands/export_pages.py"
click node_static_assets "https://github.com/jonas-y-issa/portfoliowebsite-django/tree/master/myapp/static"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_django,node_settings,node_proxy,node_routing,node_app_routes toneBlue
class node_homepage,node_records,node_admin,node_gallery toneAmber
class node_exporter,node_static_assets,node_pages toneMint
class node_homepage_template,node_base_template,node_client_interactions,node_shared_styles,node_homepage_styles toneRose
class node_visitor,node_cloudflare toneIndigo
```

## Components

### Web runtime

- [Django runtime](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/asgi.py): `MyWebsite/asgi.py`
- [Site configuration](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/settings.py): `MyWebsite/settings.py`
- [Trusted proxy filter](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/middleware.py): `MyWebsite/middleware.py`
- [Site routes](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/MyWebsite/urls.py): `MyWebsite/urls.py`
- [Portfolio routes](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/urls.py): `myapp/urls.py`

### Portfolio content

- [Homepage view](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/views.py): `myapp/views.py`
- [Portfolio records](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/models.py): `myapp/models.py`
- [Content admin](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/admin.py): `myapp/admin.py`
- [Project galleries](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/models.py): `myapp/models.py`

### Static publishing

- [Pages exporter](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/management/commands/export_pages.py): `myapp/management/commands/export_pages.py`
- [Source assets](https://github.com/jonas-y-issa/portfoliowebsite-django/tree/master/myapp/static): `myapp/static`
- **Static Pages site**

### Visitor experience

- [Homepage template](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/templates/Index.html): `templates/Index.html`
- [Shared page shell](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/templates/base.html): `templates/base.html`
- [Portfolio interactions](https://github.com/jonas-y-issa/portfoliowebsite-django/blob/master/myapp/static/base/scripts/portfolio.js): `myapp/static/base/scripts/portfolio.js`
- [Shared styling](https://github.com/jonas-y-issa/portfoliowebsite-django/tree/master/myapp/static/base/css): `myapp/static/base/css`
- [Section styling](https://github.com/jonas-y-issa/portfoliowebsite-django/tree/master/myapp/static/homepage/css): `myapp/static/homepage/css`

### Other components

- **Visitor**
- **Cloudflare Pages**

## Connections

- Visitor → Site routes: requests page (evidence: `README.md`)
- Site routes → Portfolio routes: includes routes (evidence: `MyWebsite/urls.py`)
- Portfolio routes → Homepage view: routes to (evidence: `myapp/urls.py`)
- Homepage view → Portfolio records: queries content (evidence: `myapp/views.py`)
- Homepage view → Homepage template: renders (evidence: `myapp/views.py`)
- Homepage template → Shared page shell: loads shell (evidence: `README.md`)
- Homepage template → Shared styling: loads styles (evidence: `README.md`)
- Homepage template → Section styling: loads styles (evidence: `README.md`)
- Homepage template → Portfolio interactions: loads script (evidence: `README.md`)
- Content admin → Portfolio records: edits records (evidence: `myapp/admin.py`)
- Site configuration → Trusted proxy filter: configures middleware (evidence: `MyWebsite/settings.py`)
- Site configuration → Site routes: selects routes (evidence: `MyWebsite/settings.py`)
- Django runtime → Site configuration: loads configuration (evidence: `MyWebsite/asgi.py`)
- Homepage view → Project galleries: prefetches gallery (evidence: `myapp/views.py`)
- Pages exporter → Homepage view: renders homepage (evidence: `myapp/management/commands/export_pages.py`)
- Pages exporter → Portfolio records: checks projects (evidence: `myapp/management/commands/export_pages.py`)
- Pages exporter → Source assets: copies assets (evidence: `myapp/management/commands/export_pages.py`)
- Pages exporter → Static Pages site: generates site (evidence: `README.md`)
- Static Pages site → Cloudflare Pages: uploaded to (evidence: `README.md`)
