I need to serve/return javascript files from a Django Rest Framework api, so in any other website client I can do: and import the content from it t ...
I need to serve/return javascript files from a Django Rest Framework api, so in any other website client I can do: and import the content from it t ...
I'm getting name and age and storing in the database through DRF and creating middleware that checks errors and response errors and status_code and wh ...
I have a question here I have two models Tag Model Profile Model Tag Serializer Profile Serializer Profile Viewset my aim is to creat ...
Currently, I am trying to build a function to export excel file. I just want to know is there a way to check if the queryset is None and then I can ...
I'm setting up an endpoint on my API which should return a XLSX-file. The DRF-docs mention https://github.com/wharton/drf-renderer-xlsx as the main ex ...
Using Django-REST-framework, I have the following view: Which returns a JSON with the shape: Is there a way to get each column as a list of valu ...
I'd like to customize the style (font, colors, logo, etc) of drf_yasg generated docs. I see that I can extend drf_yasg/swagger-ui.html with the block ...
does it make sense to use Django Rest Framework also to render my HTML Code with Bootstrap and so on...? If no, what is the best solution to split the ...
In order to interact with slack, a server needs to be able to validate requests based on some cryptographic hashing. If this check returns false, the ...
I'm using Django 2.x and DRF I have a view which returns the binary data in different formats like pdf, eps, etc. To return binary response, I have ...
I am using Django 2.x and DRF. From my APIView, I want to return pdf or eps binary data file. and the BinaryFileRenderer This works fine for pd ...
I am trying to set a different color on every second row in XLSX file. From the documentation I see that I can pass some conditions using body propert ...
I've checked dozens of examples and I think I am doing it the right way, however I am getting this error message 'City' object has no attribute 'store ...