Sunil NepaliUnderstanding on_delete CASCADE vs. on_delete PROTECT in DjangoBefore we dive into their differences and use cases, let’s define these two options:Jul 18Jul 18
Sunil NepaliCreate Custom Django-Admin CommandsDjango is a powerful web framework that makes it easier to build web applications with Python. One of its many features is the ability to…Jul 16Jul 16
Sunil NepaliDifferences between REST API and GraphQLREST is great for simple, well-defined APIs, while GraphQL offers more flexibility and efficiency, especially for complex queries and…Jul 11Jul 11
Sunil NepaliSimplifying File Exports in Python with io.BytesIO and PandasMany people export dataframe to excel like this using file handling. The main problem working like this. When system being used by many…Jul 11Jul 11
Sunil NepaliWorking with Role, Permission & Groups in DjangoGroups & permission is given by django in default, If you need to Create custom UI for Roles and permission you need to Import the builtin…Jul 10Jul 10
Sunil NepaliAPI Calling from Next.js middleware (Server Side)Are you struggling with api calling from Next.js middleware? I’ve been facing same problem. After many practices and research i found…Jul 101Jul 101