Published: September 01, 2019
Welcome to the final part of the 9 Django Concepts for aspiring Django developers.
For this, I will be covering parts like deployment, testing and supporting front-end framework.
By default, Django comes with its own testing module based upon Python's default testing library.
Which is called unittest.
Personally, I would prefer the use of Pytest.
Due to it is simple to write test cases without much boilerplate and it's Fixtures to mock data to run your test cases repeatedly.
Django is being increasingly used as a backend system to provide support for front-end.
Therefore you need to use new tools or services to provide your best support of front-end.
The first library will definitely be Django REST Framework.
Which will be your bread & butter skill to be used for building REST APIs.
If you are heading towards API development route for Django.
Which is an industry API design specification to speed up your API development process.
API evangelist provides tons of resources for API ecosystem.
Unless your organisation or company's front-end developer bugs you to use GraphQL, just build REST endpoints due to its maturity & eco-system on it.
For building GraphQL, there is a project called Graphene which extends your Django to provide GraphQL endpoints.
Here I will list down both simple & complex deployment.
If you really want to learn more about deploying Django.
If it is just a personal website or service with a small number of users, go for these cloud hosting service providers.
Due to the complexity of the various technologies used for deploying Django.
The use of Zappa is a great choice.
If you are using AWS to scale Django.
These are the concepts that I had encountered along the way to become a better Django developer.
Do let me know in the comments section if you had any doubts on Django concepts or the article.
Lastly, to end off this article, PyCon SG has invited the creator of Zappa Rich Jones as a keynote speaker.
If you are interested in learning about Zappa by Rich Jones, you can head on down to get your tickets for PyCon SG 2019