Important files from Django to Fastapi

views => controllers & routersurls => routersseria

March 4, 2024 continue
Deploy Django Project

Step 1: Set Up a Virtual Private Server (VPS)Choose a VPS pr

Dec. 24, 2023 continue
retrieve method in Viewsets

def retrieve(self, request, *args, **kwargs): instan

Dec. 4, 2023 continue
use paginate and filters in list method

To apply the filter_backends, filterset_class, ordering_fiel

Nov. 29, 2023 continue
show “on” or “off” icons for calculated boolean fields

@admin.register(Hero) class HeroAdmin(admin.ModelAdmin):

Nov. 28, 2023 continue
run script in django

1) write in terminal:export DJANGO_SETTINGS_MODULE=mysite.se

Nov. 28, 2023 continue
Custom Exception

importsfrom rest_framework.exceptions import PermissionDenie

Nov. 18, 2023 continue
Pagination in django

Example code:from rest_framework.pagination import PageNumbe

Nov. 14, 2023 continue
Differences between has_object_permission and has_permission

We have following two permission methods on BasePermiss

Nov. 14, 2023 continue
Aggregating and Annotating Objects

The Django web framework includes a default object-rela

Nov. 7, 2023 continue