An open API service indexing awesome lists of open source software.

https://github.com/contraslash/10-things-about-drf


https://github.com/contraslash/10-things-about-drf

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# 10 things about DRF

[medium article](https://medium.com/profil-software-blog/10-things-you-need-to-know-to-effectively-use-django-rest-framework-7db7728910e0)
[Minimal Django](https://github.com/ma0c/tic-tac-toe-minimal-python/blob/master/server.py)

## Ideas
1. Django in a single file
- [Mini Django](https://github.com/readevalprint/mini-django)
- [Django vs Flask](https://adamj.eu/tech/2019/04/03/django-versus-flask-with-single-file-applications/)
- [Lightweight Django](https://www.oreilly.com/library/view/lightweight-django/9781491946275/ch01.html)
1. [Serializer Method Fields](https://www.django-rest-framework.org/api-guide/fields/#serializermethodfield)
1. [Custom Fields](https://www.django-rest-framework.org/api-guide/fields/#custom-fields)
1. [Custom Validators](https://osborngreg.com/posts/custom-validators-django-rest-fr/)
1. [Renaming with parameter](https://www.django-rest-framework.org/api-guide/fields/#source)
1. [Custom urls in viewsets (Actions)](https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing)
1. Dynamic Serializers
- [Dynamic Rest](https://github.com/AltSchool/dynamic-rest)
- [DRF Dynamic Fields](https://github.com/dbrgn/drf-dynamic-fields)
- [DRF Flex Fields](https://github.com/rsinger86/drf-flex-fields)
1. [Django URL Filter](https://github.com/miki725/django-url-filter)
1. [Custom Filtering](https://www.django-rest-framework.org/api-guide/filtering/#custom-generic-filtering)
1. [Content Negotiation](https://www.django-rest-framework.org/api-guide/content-negotiation/)

```bash
python -m venv ten_things_about_drf_env
source ten_things_about_drf_env/bin/activate
pip install django
```