# bharat-panchal15/django-learning-journey architecture

> Architecture diagram of the GitHub repository bharat-panchal15/django-learning-journey, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-09-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bharat-panchal15/django-learning-journey
- Repository: https://github.com/bharat-panchal15/django-learning-journey

## Overview

##### Project Type & Purpose
- This is a multi-phase **learning journey** repository for Django fundamentals.
- Each phase (django_basics, django_models, django_forms, django_auth, etc.) is a separate Django project demonstrating specific concepts.
- No services or apps talk to each other—they’re isolated environments.

##### File Structure Analysis
- Top-level directories:
- django_basics
- django_models
- django_forms
- django_auth
- Each directory follows the standard Django layout:
├── manage.py
├── <project_name>/ (ASGI/WGI, settings, URLs)
├── one or more apps (e.g., notes, books, myforms, accounts, user_accounts)
├── templates/, static/, media/
├── migrations/
- Configuration: each phase has its own settings.py, urls.py, and a local SQLite (or requirements.txt).

##### README Insights
- Phases map to progressive learning goals: basics → models → forms → authentication.
- Final goal: real-world full-stack projects (APIs, deployment).

##### Detailed but Concise
- Django project’s layers:
– Presentation (templates, static)
– Application (views, URLs, forms)
– Data (models, ORM, migrations, database)
- Intra-app interactions only when relevant (e.g., custom auth backend consulted by accounts app).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Meta Roadmap
    subgraph "Learning Roadmap"
        direction TB
        P1["Phase 1: Django Basics"]:::phase
        P2["Phase 2: ORM & Migrations"]:::phase
        P3["Phase 3: Forms & Uploads"]:::phase
        P4["Phase 4: Authentication"]:::phase
        P1 --> P2 --> P3 --> P4
    end

    %% Phase 1 Diagram
    subgraph "Phase 1: Django Basics"
        direction TB
        Client1["Browser"]:::client
        ASGI1["Django ASGI/WSGI"]:::config
        CONFIG1["Project Config"]:::config
        NOTESAPP["Notes App"]:::apps
        TEMPL1["Templates"]:::templates
        STATIC1["Static Assets"]:::templates
        DB1["SQLite DB"]:::db
        MNG1["manage.py"]:::config

        Client1 --> ASGI1 --> CONFIG1
        CONFIG1 --> NOTESAPP
        NOTESAPP --> DB1
        NOTESAPP --> TEMPL1
        NOTESAPP --> STATIC1
        CONFIG1 --> MNG1
        CONFIG1 --> DB1
    end

    %% Phase 2 Diagram
    subgraph "Phase 2: Django Models"
        direction TB
        Client2["Browser"]:::client
        ASGI2["Django ASGI/WSGI"]:::config
        CONFIG2["Project Config"]:::config
        BOOKSAPP["Books App"]:::apps
        TEMPL2["Templates"]:::templates
        MIGR2["Migrations"]:::db
        DB2["SQLite DB"]:::db
        MNG2["manage.py"]:::config

        Client2 --> ASGI2 --> CONFIG2
        CONFIG2 --> BOOKSAPP
        BOOKSAPP --> DB2
        BOOKSAPP --> TEMPL2
        BOOKSAPP --> MIGR2
        CONFIG2 --> MNG2
        CONFIG2 --> DB2
    end

    %% Phase 3 Diagram
    subgraph "Phase 3: Django Forms"
        direction TB
        Client3["Browser"]:::client
        ASGI3["Django ASGI/WSGI"]:::config
        CONFIG3["Project Config"]:::config
        FORMSAPP["MyForms App"]:::apps
        TEMPL3["Templates"]:::templates
        MIGR3["Migrations"]:::db
        MEDIA3["Uploaded Media"]:::templates
        DB3["SQLite DB"]:::db
        MNG3["manage.py"]:::config

        Client3 --> ASGI3 --> CONFIG3
        CONFIG3 --> FORMSAPP
        FORMSAPP --> DB3
        FORMSAPP --> TEMPL3
        FORMSAPP --> MIGR3
        FORMSAPP --> MEDIA3
        CONFIG3 --> MNG3
        CONFIG3 --> DB3
    end

    %% Phase 4 Diagram
    subgraph "Phase 4: Django Authentication"
        direction TB
        Client4["Browser"]:::client
        ASGI4["Django ASGI/WSGI"]:::config
        CONFIG4["Project Config"]:::config
        ACC_APP["Accounts App"]:::apps
        UA_APP["UserAccounts App"]:::apps
        TEMPL4["Accounts Templates"]:::templates
        MIGR4["Accounts Migrations"]:::db
        MIGRUA["UserAccounts Migrations"]:::db
        GTPL4["Global Templates"]:::templates
        DB4["SQLite DB"]:::db
        MNG4["manage.py"]:::config

        Client4 --> ASGI4 --> CONFIG4
        CONFIG4 --> ACC_APP
        CONFIG4 --> UA_APP
        ACC_APP --> DB4
        UA_APP --> DB4
        ACC_APP --> TEMPL4
        ACC_APP --> MIGR4
        UA_APP --> MIGRUA
        CONFIG4 --> GTPL4
        CONFIG4 --> MNG4
        CONFIG4 --> DB4
    end

    %% Click Events Phase1
    click CONFIG1 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_basics/notely/"
    click NOTESAPP "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_basics/notes/"
    click TEMPL1 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_basics/notes/templates/"
    click STATIC1 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_basics/notes/static/"
    click MNG1 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_basics/manage.py"
    click DB1 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_basics/db.sqlite3"

    %% Click Events Phase2
    click CONFIG2 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_models/config/"
    click BOOKSAPP "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_models/books/"
    click TEMPL2 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_models/books/templates/books/"
    click MIGR2 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_models/books/migrations/"
    click MNG2 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_models/manage.py"
    click DB2 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_models/db.sqlite3"

    %% Click Events Phase3
    click CONFIG3 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_forms/config/"
    click FORMSAPP "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_forms/myforms/"
    click TEMPL3 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_forms/myforms/templates/"
    click MIGR3 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_forms/myforms/migrations/"
    click MEDIA3 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_forms/media/"
    click MNG3 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_forms/manage.py"
    click DB3 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_forms/db.sqlite3"

    %% Click Events Phase4
    click CONFIG4 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_auth/config/"
    click ACC_APP "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_auth/accounts/"
    click TEMPL4 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_auth/accounts/templates/"
    click MIGR4 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_auth/accounts/migrations/"
    click UA_APP "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_auth/user_accounts/"
    click MIGRUA "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_auth/user_accounts/migrations/"
    click GTPL4 "https://github.com/bharat-panchal15/django-learning-journey/tree/main/django_auth/templates/"
    click MNG4 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_auth/manage.py"
    click DB4 "https://github.com/bharat-panchal15/django-learning-journey/blob/main/django_auth/requirements.txt"

    %% Styles
    classDef config fill:#cce5ff,stroke:#333,stroke-width:1px;
    classDef apps fill:#d4edda,stroke:#333,stroke-width:1px;
    classDef db fill:#fff3cd,stroke:#333,stroke-width:1px;
    classDef templates fill:#e2e3e5,stroke:#333,stroke-width:1px;
    classDef client fill:#f8d7da,stroke:#333,stroke-width:1px;
    classDef phase fill:#cfe2ff,stroke:#333,stroke-width:2px,font-weight:bold;
```
