# feni-katharotiya/creative-scrapyard architecture

> Architecture diagram of the GitHub repository feni-katharotiya/creative-scrapyard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-11-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/feni-katharotiya/creative-scrapyard
- Repository: https://github.com/feni-katharotiya/creative-scrapyard

## Overview

##### Project type and purpose
- From the file tree and README, this is a monolithic full-stack Django web application (“creative-scrapyard”) for buying and selling used items.
- It consists of three Django apps—home (landing pages), blog (article management), shop (e-commerce)—plus integration with Paytm for payment processing.

##### File structure
- Top-level directories:
- creativeScrapyard/  ← Django project (settings, URLs, WSGI/ASGI)
- home/              ← “home” app (homepage views/templates)
- blog/              ← “blog” app (CRUD blog posts)
- shop/              ← “shop” app (product catalog, cart, orders, checkout)
- Paytm.py           ← helper for Paytm checksum & API calls
- db.sqlite3         ← local development database
- media/             ← user-uploaded files (product images, blog images)
- Each app follows Django’s MTV (model-template-view) pattern: models.py, views.py, urls.py, templates/, static/, migrations/.
- Static assets (CSS, JS, images) are organized under each app’s static/; templates under each app’s templates/.

##### README for additional insights
- Confirms Python/Django stack
- Core feature: users can list, search, buy, and sell used items
- Payment via Paytm integration (Checksum.py + paytm.html template)

##### Detail is key
- Drill down into each app if needed: e.g., show that shop.views has endpoints for /checkout, /tracker, /paymentstatus.
- Template inheritance hierarchy (base → common → specific pages).
- Don’t forget migrations folder and manage.py as part of deployment/build context.

Summary

## Diagram (Mermaid)

```mermaid
flowchart TD
    Client["Client Browser"]:::client

    subgraph "Django Server"
        router["URL Router"]:::server
        settings["Settings Module"]:::server
        wsgi["WSGI Entry Point"]:::server
        asgi["ASGI Entry Point"]:::server
        manage["manage.py CLI"]:::server

        subgraph "Home App"
            home_urls["URLs"]:::server
            home_views["Views"]:::server
            home_models["Models"]:::server
            home_admin["Admin"]:::server
            home_templates["Templates"]:::server
        end

        subgraph "Blog App"
            blog_urls["URLs"]:::server
            blog_views["Views"]:::server
            blog_models["Models"]:::server
            blog_admin["Admin"]:::server
            blog_templates["Templates"]:::server
            blog_static["Static Assets"]:::server
        end

        subgraph "Shop App"
            shop_urls["URLs"]:::server
            shop_views["Views"]:::server
            shop_models["Models"]:::server
            shop_admin["Admin"]:::server
            shop_templates["Templates"]:::server
            shop_paytm_template["paytm.html"]:::server
            shop_static["Static Assets"]:::server
        end

        paytm_module["Paytm Checksum Module"]:::server
        static_media_handler["Static & Media Handler"]:::server
    end

    Database["Database (SQLite)"]:::storage
    Media["Media Storage"]:::storage
    PaytmGW["Paytm Gateway"]:::external

    Client -->|"HTTP GET/POST"| router
    router --> home_views
    router --> blog_views
    router --> shop_views
    router --> settings
    router --> wsgi
    router --> asgi
    router --> manage

    home_views --> home_models
    blog_views --> blog_models
    shop_views --> shop_models

    home_views -->|"render"| home_templates
    blog_views -->|"render"| blog_templates
    shop_views -->|"render"| shop_templates

    static_media_handler --> blog_static
    static_media_handler --> shop_static

    shop_views -->|"renders payment page"| shop_paytm_template

    shop_views -->|"calls"| paytm_module
    paytm_module -->|"API request"| PaytmGW
    PaytmGW -->|"Callback"| shop_views

    home_views --> Database
    blog_views --> Database
    shop_views --> Database

    shop_views --> Media

    classDef client fill:#f9f,stroke:#333,stroke-width:1px
    classDef server fill:#bbf,stroke:#333,stroke-width:1px
    classDef storage fill:#ffb,stroke:#333,stroke-width:1px
    classDef external fill:#bfb,stroke:#333,stroke-width:1px

    click router "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/creativeScrapyard/urls.py"
    click settings "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/creativeScrapyard/settings.py"
    click wsgi "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/creativeScrapyard/wsgi.py"
    click asgi "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/creativeScrapyard/asgi.py"
    click manage "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/manage.py"
    click home_urls "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/home/urls.py"
    click home_views "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/home/views.py"
    click home_models "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/home/models.py"
    click home_admin "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/home/admin.py"
    click home_templates "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/home/templates/home/home.html"
    click blog_urls "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/blog/urls.py"
    click blog_views "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/blog/views.py"
    click blog_models "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/blog/models.py"
    click blog_admin "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/blog/admin.py"
    click blog_templates "https://github.com/feni-katharotiya/creative-scrapyard/tree/master/blog/templates/blog/"
    click blog_static "https://github.com/feni-katharotiya/creative-scrapyard/tree/master/blog/static/blog/"
    click shop_urls "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/shop/urls.py"
    click shop_views "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/shop/views.py"
    click shop_models "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/shop/models.py"
    click shop_admin "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/shop/admin.py"
    click shop_templates "https://github.com/feni-katharotiya/creative-scrapyard/tree/master/shop/templates/shop/"
    click shop_paytm_template "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/shop/templates/shop/paytm.html"
    click shop_static "https://github.com/feni-katharotiya/creative-scrapyard/tree/master/shop/static/"
    click paytm_module "https://github.com/feni-katharotiya/creative-scrapyard/blob/master/Paytm/Checksum.py"
```
