# alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp architecture

> Architecture diagram of the GitHub repository alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp
- Repository: https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp

## Overview

DevBot is a Django project-planning and website-code-generation application. Users create projects, provide client, questionnaire, UI, and technical requirements, then initiate code generation through views that call external APIs; the app also offers generated-site and document downloads. The README describes a Llama3 RAG system and specialized business-analysis, architecture, development, testing, and QA agents, but their implementations are not present in the sampled source. The graph shows only evidenced code relationships; those broader agent capabilities are represented as a documented external service.

Main entry points: [`Devbotapp/views.py`](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/views.py) (Project workflows), [`Devbotapp/forms.py`](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/forms.py) (Input forms), [`DevBot/urls.py`](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/DevBot/urls.py) (Django entry points), [`Devbotapp/routing.py`](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/routing.py) (Generation websocket route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_django["Django entry points<br/>[urls.py]"]
  node_views["Project workflows<br/>[views.py]"]
end

subgraph group_requirements["Project requirements"]
  node_forms["Input forms<br/>[forms.py]"]
  node_client[("Client profile<br/>[models.py]")]
  node_requirements_data[("Project requirements data<br/>[models.py]")]
  node_serializers["Requirements API serializers<br/>[serializers.py]"]
end

subgraph group_generation["Generation and outputs"]
  node_doc["Requirements document<br/>[DocGeneration.py]"]
  node_agent_service{{"RAG and agent services"}}
  node_site_output["Generated site and downloads<br/>[views.py]"]
end

subgraph group_realtime["Realtime updates"]
  node_asgi["ASGI websocket routing<br/>[asgi.py]"]
  node_ws_routes["Generation websocket route<br/>[routing.py]"]
  node_consumer["Generation log consumer<br/>[consumers.py]"]
end

node_user(("Project user"))

node_user -->|"uses"| node_django
node_django -->|"routes requests"| node_views
node_views -->|"validates input"| node_forms
node_views -->|"reads client"| node_client
node_views -->|"reads and saves"| node_requirements_data
node_forms -->|"builds inputs"| node_requirements_data
node_forms -->|"creates profile"| node_client
node_views -->|"serializes requirements"| node_serializers
node_views -->|"generates document"| node_doc
node_views -->|"calls generation APIs"| node_agent_service
node_agent_service -.->|"returns site files"| node_site_output
node_views -->|"serves downloads"| node_site_output
node_asgi -->|"routes websockets"| node_ws_routes
node_ws_routes -->|"dispatches connection"| node_consumer
node_user -.->|"requests project generation"| node_agent_service

click node_django "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/DevBot/urls.py"
click node_views "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/views.py"
click node_forms "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/forms.py"
click node_client "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/Client/models.py"
click node_requirements_data "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/models.py"
click node_serializers "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/serializers.py"
click node_doc "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/DocGeneration.py"
click node_site_output "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/views.py"
click node_asgi "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/DevBot/asgi.py"
click node_ws_routes "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/routing.py"
click node_consumer "https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/consumers.py"

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_views,node_user toneBlue
class node_forms,node_client,node_requirements_data,node_serializers toneAmber
class node_doc,node_agent_service,node_site_output toneMint
class node_asgi,node_ws_routes,node_consumer toneRose
```

## Components

### Web application

- [Django entry points](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/DevBot/urls.py): `DevBot/urls.py`
- [Project workflows](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/views.py): `Devbotapp/views.py`

### Project requirements

- [Input forms](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/forms.py): `Devbotapp/forms.py`
- [Client profile](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/Client/models.py): `Devbotapp/Client/models.py`
- [Project requirements data](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/models.py): `Devbotapp/models.py`
- [Requirements API serializers](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/serializers.py): `Devbotapp/serializers.py`

### Generation and outputs

- [Requirements document](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/DocGeneration.py): `Devbotapp/DocGeneration.py`
- **RAG and agent services**
- [Generated site and downloads](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/views.py): `Devbotapp/views.py`

### Realtime updates

- [ASGI websocket routing](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/DevBot/asgi.py): `DevBot/asgi.py`
- [Generation websocket route](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/routing.py): `Devbotapp/routing.py`
- [Generation log consumer](https://github.com/alinababer/django-based-website-code-generation-with-rag-llama3-multi-agi-of-software-development-webapp/blob/main/Devbotapp/consumers.py): `Devbotapp/consumers.py`

### Other components

- **Project user**

## Connections

- Project user → Django entry points: uses (evidence: `DevBot/urls.py`)
- Django entry points → Project workflows: routes requests (evidence: `DevBot/urls.py`)
- Project workflows → Input forms: validates input (evidence: `Devbotapp/views.py`)
- Project workflows → Client profile: reads client (evidence: `Devbotapp/views.py`)
- Project workflows → Project requirements data: reads and saves (evidence: `Devbotapp/views.py`)
- Input forms → Project requirements data: builds inputs (evidence: `Devbotapp/forms.py`)
- Input forms → Client profile: creates profile (evidence: `Devbotapp/forms.py`)
- Project workflows → Requirements API serializers: serializes requirements (evidence: `Devbotapp/views.py`)
- Project workflows → Requirements document: generates document (evidence: `Devbotapp/views.py`)
- Project workflows → RAG and agent services: calls generation APIs (evidence: `Devbotapp/views.py`)
- RAG and agent services → Generated site and downloads: returns site files
- Project workflows → Generated site and downloads: serves downloads (evidence: `Devbotapp/views.py`)
- ASGI websocket routing → Generation websocket route: routes websockets (evidence: `DevBot/asgi.py`)
- Generation websocket route → Generation log consumer: dispatches connection (evidence: `Devbotapp/routing.py`)
- Project user → RAG and agent services: requests project generation (evidence: `README.md`)
