Django (13)

Writing Custom Django Management Commands

Any command given with is called management command. Django comes with many built-in management commands like runserver, startapp etc. To see a full list of built-in management commands, type: python help The benefit of management command script is that this script executes within Django environment. You can run all of Django ORM queries […]

Logging in Django and Django Rest Framework projects

Logging is extremely necessary, during development and production. There are two ways to implement logging. In apps with high scale, we log to console and then have some in-the-cloud solution like Sentry to log the messages from the console. This is great because large scale apps often run on multiple servers and we can converge […]

Django Rest Framework project setup template

Ian Schneider This is a list of what I do when I setup a new DRF project. I am assuming that pipenv is already installed. Also, assuming that Python 3.5+ already installed in the base environment. For those in Python<3.5, please refer here for options. create new environment: pipenv shell pipenv install django djangorestframework markdown […]