Projects using Django in DelhiProjects using Django in Delhi
Cover image for Django CMS – Content Management System | Python, Django & Po...
Django CMS – Content Management System | Python, Django & PostgreSQL
0
134
Cover image for Hit a classic Django trap
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
Cover image for Recently, I built a Django REST API Boilerplate — a producti...
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
Cover image for WizKids Carnival - Global platform
WizKids Carnival - Global platform for kids to compete in various competitions and activities My team built the product from the ground up. This involved different features such as competition listing, participation flows, dashboards, user profiles, subscription and payments. Development of different modules and payment flows were also done which included User Module, Dashboard, My Competitions; Settings (Profile updates for parent and child); Subscription Plan; Support, Logout, Upload File feature; View Submissions, View Feedback Tech Stack: Django, Postgresql, AWS, Crypto.JS, React.JS
0
41