Hit a classic Django trap this week and figured it's worth sharing since so many people are running into it now.
I was adding an LLM feature to a Django app. The AI call takes a few seconds, so naturally I made the view async so it doesn't block a worker while waiting. Wrote the async view, called the ORM like I always do, and boom:
SynchronousOnlyOperation: You cannot call this from an async context.
Turns out Django's ORM can't just be called normally inside async code. The classic sync API isn't safe in an event loop, so Django protects it and throws this error instead.
The fix is simpler than most people think. Since Django 4.1 the ORM has async versions of everything, same names with an "a" prefix. So objects.get() becomes await objects.aget(), create() becomes acreate(), save() becomes asave(). For loops over querysets, async for works directly. And for old sync code or third party libraries you can't change, wrap them with sync_to_async().
Why this matters right now: everyone is bolting AI features onto Django apps, and LLM calls are exactly the slow I/O that async is made for. Which means a lot of devs who never touched async Django are suddenly hitting this error for the first time.
One honest caveat: transactions still don't fully work in async mode, so if you need atomic blocks, keep that path sync and wrap it.
Anyone else made the jump to async views yet, or still happily on WSGI?
0
160
An AI-powered news platform that delivers concise, real-time AI-industry updates to 2,500+ active users. It scrapes and aggregates 500+ sources daily, removes duplicates, and uses generative-AI summarization to cut reading time significantly while surfacing the most relevant stories. I built the backend responsible for scraping, deduplication, and the LLM summarization pipeline.
0
97
Built a Python-powered automated trading tool that pulls live market data, runs technical analysis, and generates real-time trade signals. Features normalized comparison charts across multiple assets (Nifty, USD Index, Brent Crude, US 10Y Yield), a macro pressure table, correlation analysis, and a portfolio helper. Backend built in Python with automated data pipelines, live market feeds, and signal interpretation logic that flags bullish/bearish pressure. Clean, data-dense dashboard for fast decision-making.
Tech: Python, Pandas, REST APIs, data automation, real-time charting.
1
121
An AI-driven trading engine that analyzes 200-DMA breakouts and real-time market sentiment to generate long/short recommendations. It scans 1,500+ NSE stocks in under 2 seconds and uses generative AI to build option strategies, delivering event-driven trade signals end-to-end. I built the full Django backend, async APIs, and the signal-generation logic.
Accomplishments and responsibilities:
Built an AI-driven trading engine analyzing 200-DMA breakouts and market sentiment, generating long/short signals with ~70% directional accuracy — outperforming baseline strategies by 35%;
Integrated generative-AI insights for automated option-strategy creation (spreads, straddles, condors), improving Sharpe ratio by 1.6× and cutting manual analysis time by 60%;
Developed a Django backend with async APIs scanning 1,500+ NSE stocks in under 2 seconds, achieving 40% lower latency with event-driven alerts.
Full-Stack Developer building fast, modern web apps
Full-Stack Developer building fast, modern web apps
Recently, I built a Django REST API Boilerplate — a production-ready backend template for modern SaaS apps and APIs.
Highlights:
🔹 Modular, scalable architecture with Django REST Framework
🔹 JWT auth, Swagger docs, and Docker setup included
🔹 Split settings for dev/prod environments
🔹 PostgreSQL + Stripe-ready billing integration
🔹 Clean API design for easy frontend integration
It’s built for developers who want to skip repetitive setup and focus on real product logic from day one.
🔗 GitHub: https://github.com/aman-sharma-dev/saas-boilerplate
0
62
About 2 months ago, I built an Encryption Suite — a versatile tool for encrypting text, files, and folders with Flask, Python GUI, and CLI support.
Highlights:
🔹 Password & key-based encryption
🔹 Web UI, GUI, and CLI in one project
🔹 Fernet and demo ciphers like Caesar
🔹 Simple yet powerful for all users
It’s a fun experiment in multi-interface app design, blending web, desktop, and command-line experiences under one secure system.
🔗Github: https://github.com/aman-sharma-dev/pycryption
0
60
About 3 months ago, I built PDF Toolbox (https://github.com/aman-sharma-dev/pdftoolbox), a lightweight suite of tools to manage and interact with PDF files - all through a clean web interface and live API documentation.
It’s not just about merging or compressing PDFs - the real focus is on the interactive API docs that let you test every endpoint directly in the browser, view request/response structures, and understand how the backend works in real time.
Key Highlights:
🔹 Merge, compress, extract, and convert PDFs easily
🔹 Live API playground for testing endpoints
🔹 Built with Next.js, TypeScript, TailwindCSS, and shadcn/ui
🔹 Powered by pdf-lib for PDF operations
🔹 Deployed on Vercel for smooth performance
PDF Toolbox shows how simple, transparent API design can turn even small utilities into developer-friendly products.
0
51
About 7 months ago, I built Forjnot (https://forjnot.vercel.app/), a high-performance monorepo starter template designed for developers who care about scalability and clean architecture.
It integrates NestJS, Next.js, and TurboRepo - making it easy to spin up real-world, production-ready full-stack apps with minimal setup.
Key Highlights:
🔹 Modular & Scalable Backend powered by NestJS
🔹 Next.js frontend with SSG support
🔹 TurboRepo for efficient monorepo management
🔹 Shared packages for configs, DTOs, types, and utilities
🔹 Ready-to-use Docker setup for smooth deployment
Forjnot (https://forjnot.vercel.app/) isn’t just a boilerplate - it’s a carefully structured foundation built for speed, clarity, and long-term scalability.
🔗 Check it out on GitHub: https://github.com/aman-sharma-dev/forjnot