| title | SU Analytics |
|---|---|
| emoji | π |
| colorFrom | purple |
| colorTo | indigo |
| sdk | docker |
| pinned | false |
| license | mit |
| app_port | 7860 |
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.
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
- 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
- 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
- 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
- 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
- Newspaper coverage entries (publication, headline, edition, clipping image)
- Press release tracking (title, content, placements, potential reach)
- One-command seed with real Sarvajanik University data (JanβMar 2026)
- Includes 33 events, 3 months of analytics, and 30 top posts
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
| 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 |
git clone https://github.com/Daku3011/University-Analytics-Reporting-Automation-Platform.git
cd University-Analytics-Reporting-Automation-Platformpython -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activatepip install -r requirements.txtNote: WeasyPrint requires system fonts & Cairo. On Ubuntu/Debian:
sudo apt-get install libpango-1.0-0 libpangoft2-1.0-0 libcairo2
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.
python manage.py migratepython manage.py createsuperuserSeed the database with real Sarvajanik University data from JanβMar 2026:
python manage.py seed_datapython manage.py runserverOpen your browser at http://127.0.0.1:8000
| 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 |
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
- 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
- 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