Practicas Informables
Practicas Informables
Table of Contents
Introduction 0
Table of Contents 1
Getting everything up and running 2
What the H!@#!?ck am I building? 3
2
Best practices in Django Rest Framework
I'm always happy to learn people what I have learned in the years that I have been
developing. This brought me on the idea for creating an open sourced book about Django
Rest Framework and creating RESTful API's.
Creating RESTful API's looks like an easy thing, but many people underestimate it a lot. This
is why we should continue to standardize practices together. To come with one unified
solution to most of our REST related issues.
Introduction 3
Best practices in Django Rest Framework
Table of Contents 4
Best practices in Django Rest Framework
- repository
- project
- app1
__init__.py
models.py
etc.py
- app2
- config
- manage.py
- .gitignore
- README.md
This project structure keeps all the README's and gitignores away from the code itself.
After having installed cookiecutter on your machine you can create a new project structure
with one of the thousands cookiecutter project setups in the opensource world. I personally
love to use the cookiecutter made by my buddy Andrew Conti
https://github.com/agconti/cookiecutter-django-rest. Big ups to Andrew for creating such a
lean but useful cookiecutter setup!
When we didn't have any Virtual machine we would have a problem, because we cannot
have multiple versions installed on one machine. That's why we use a virtual machine to
sandbox our dependencies. TODO actually write about creating the virtual machine