Skip to content

Daku3011/University-Analytics-Reporting-Automation-Platform

Repository files navigation

title SU Analytics
emoji πŸ“Š
colorFrom purple
colorTo indigo
sdk docker
pinned false
license mit
app_port 7860

πŸ“Š SU Analytics β€” University Analytics Reporting Platform

A Django-powered internal platform for Sarvajanik University to track, manage, and auto-generate PDF reports from social media analytics, events, newspaper coverage, and press releases β€” with AI-assisted quarterly summaries via Google Gemini.


🚦 Project Stage

Phase 1 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ Complete   βœ…  Core data models & admin panel
Phase 2 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ Complete   βœ…  Analytics data entry & dashboard
Phase 3 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ Complete   βœ…  Monthly & quarterly PDF reports
Phase 4 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘ In Progress πŸ”§  Multi-college management & roles
Phase 5 β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ Planned    πŸ“‹  Charts, exports & notifications

Current Version: v2.4.1-beta Β· Stack: Django 5.2 Β· SQLite Β· WeasyPrint Β· Gemini AI


✨ Features

πŸ“ˆ Analytics Management

  • Enter monthly social media data per college (Instagram, Facebook, YouTube)
  • Track views, reach, followers gained, reels count, and graphics count
  • Auto-calculate totals and display them on the dashboard

πŸ—“οΈ Events Tracking

  • Log university events with categories (Workshop, Festival, Placement, Achievement, Conference, Guest Lecture, Academic, Cultural, Sports)
  • Attach media files (images, videos, PDFs, reels, posters) to events
  • Event detail view with all associated media

πŸ“„ Report Generation

  • Monthly Reports β€” HTML-to-PDF reports per college per month using WeasyPrint
    • Includes analytics, events, top Instagram/Facebook posts, newspaper coverage & press releases
  • Quarterly Reports β€” Aggregated Q1–Q4 summaries across all colleges
    • AI-written narrative summaries powered by Google Gemini 2.0 Flash
  • Preview generated reports in-browser before downloading

🏫 Multi-College Support

  • Role-based access: Super Admin, College Admin, Analytics Team
  • College admins see only their own college's data
  • Super admins manage all colleges from one dashboard

πŸ“° Media & Coverage Tracking

  • Newspaper coverage entries (publication, headline, edition, clipping image)
  • Press release tracking (title, content, placements, potential reach)

🌱 Demo Data Seeding

  • One-command seed with real Sarvajanik University data (Jan–Mar 2026)
  • Includes 33 events, 3 months of analytics, and 30 top posts

πŸ—‚οΈ Project Structure

SU_Analytics/
β”œβ”€β”€ accounts/           # Auth, login/logout, user profiles & roles
β”œβ”€β”€ analytics_app/      # Monthly analytics data entry & models
β”œβ”€β”€ colleges/           # College model + seed_data management command
β”œβ”€β”€ events/             # Events & media tracking
β”œβ”€β”€ reports/            # PDF generation (monthly + quarterly), newspaper, press release
β”œβ”€β”€ su_analytics/       # Django project settings, root URLs, dashboard view
β”œβ”€β”€ templates/          # All HTML templates
β”‚   β”œβ”€β”€ accounts/
β”‚   β”œβ”€β”€ analytics_app/
β”‚   β”œβ”€β”€ events/
β”‚   └── reports/
β”œβ”€β”€ static/             # CSS, JS, images
β”œβ”€β”€ manage.py
β”œβ”€β”€ requirements.txt
└── .gitignore

βš™οΈ Tech Stack

Layer Technology
Backend Django 5.2.14
Database SQLite (dev)
PDF Engine WeasyPrint 68.1
AI Summaries Google Gemini 2.0 Flash (google-generativeai 0.8.6)
Image Handling Pillow 12.2.0
Frontend HTML5 Β· Vanilla CSS Β· JavaScript

πŸš€ Getting Started

1. Clone the Repository

git clone https://github.com/Daku3011/University-Analytics-Reporting-Automation-Platform.git
cd University-Analytics-Reporting-Automation-Platform

2. Create a Virtual Environment

python -m venv venv
source venv/bin/activate        # Windows: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

Note: WeasyPrint requires system fonts & Cairo. On Ubuntu/Debian:

sudo apt-get install libpango-1.0-0 libpangoft2-1.0-0 libcairo2

4. Configure Environment Variables

Create a .env file (or export directly) with:

export GEMINI_API_KEY="your_google_gemini_api_key_here"

Get your free Gemini API key at aistudio.google.com.

5. Apply Migrations

python manage.py migrate

6. Create a Superuser

python manage.py createsuperuser

7. (Optional) Load Demo Data

Seed the database with real Sarvajanik University data from Jan–Mar 2026:

python manage.py seed_data

8. Run the Development Server

python manage.py runserver

Open your browser at http://127.0.0.1:8000


πŸ”‘ Default URL Routes

URL Description
/ Main dashboard
/accounts/login/ Login page
/analytics/add/ Add monthly analytics
/events/add/ Add a new event
/reports/ Reports dashboard
/reports/generate/monthly/ Generate monthly PDF
/reports/generate/quarterly/ Generate quarterly PDF + AI summary
/admin/ Django admin panel

πŸ› οΈ Admin Panel

Access the Django admin at /admin/ with your superuser credentials to:

  • Manage colleges, users, and roles
  • View/edit all analytics entries, events, and reports
  • Upload newspaper clippings and manage press releases

πŸ—ΊοΈ Upcoming Features

πŸ”œ Coming Soon (Phase 5)

  • Interactive Charts β€” Chart.js visualizations on the dashboard (bar, line, pie)
  • Excel/CSV Export β€” Download analytics data in spreadsheet format
  • Email Notifications β€” Automated monthly reminders to college admins
  • Dark Mode UI β€” Full dark-mode support across the platform

πŸ“‹ Planned (Phase 6+)

  • WhatsApp/Telegram Bot β€” Push report notifications via messaging platforms
  • REST API β€” Expose analytics data via DRF for third-party integrations
  • PostgreSQL Migration β€” Upgrade from SQLite for production deployment
  • Bulk Data Import β€” CSV/Excel upload for batch analytics entry
  • Custom Report Templates β€” Per-college branded PDF templates
  • Year-over-Year Comparison β€” Multi-year analytics trend views
  • Mobile-Responsive UI β€” Full responsive design revamp
  • Deployment β€” Docker + Gunicorn + Nginx production setup

Last updated: 7:45 PM 17 May 2026

About

One centralized portal where every college uploads monthly media activities, and the university analytics team can generate professional monthly and quarterly reports automatically with AI assistance.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors