Django
-
Startup Process Internals of Python Apps on Azure App Service for Linux
Microsoft documentation very well describes how to host a Python web app on Azure app service for Linux. In the documentation it says the essence of startup script to let the WSGI or ASGI based web server to serve the application. The startup command needs to be given in the startup command text box that… Continue reading
-
Decoding the Clash: Navigating the Conflict Between Django LocMemCache and Uvicorn Workers
Django LocMemCache, short for Local Memory Cache, is a caching mechanism that stores data in the local memory of the server. Unlike more resource-intensive caching systems, LocMemCache is designed to be simple and efficient. It doesn’t require external dependencies or additional servers, making it an attractive option for projects with limited resources and reduced ops… Continue reading
-
Django Logging Raw SQL Statements
I found the following code snippet is useful to print the raw SQL statements executed by Django ORM. Continue reading
-
Django: From Response Content to InMemoryUploadedFile
InMemoryUploadedFile is very common in Django which is often used in the context of handling file uploads from web forms. This type represents a file that has been uploaded by a user via a web form, but instead of being stored on the server’s filesystem, it’s kept in memory as a temporary file-like object. This… Continue reading
-
TDD and Type-safety
It is a common agreement that, dynamically typed languages execute type checking at runtime, whereas statically typed languages do it at build time. In that sense Python is a dynamically typed language. Recently there was a responsibility shift in my job role where now I need to write more Python code using Django framework than… Continue reading
-
How to use Django-1.5 via parallel installable python-django15
Last week, the package python-django15 was approved. It’s a Django package to be installed in parallel to e.g python-django. Once you installed it, you can not use it directly. For example for python-django-horizon aka. OpenStack Dashboard we need to change the django.wsgi from github to import logging import os import sys #### # explicitly require… Continue reading
Recent Posts
- Comments on Service Locator (Anti Pattern)
- RESP – Redis Client Server Protocol
- Reflections on Clean Architecture Implementations with ORM
- Startup Process Internals of Python Apps on Azure App Service for Linux
- Power of Services: Decoupling Secrets for a More Flexible System Architecture
- Decoding the Clash: Navigating the Conflict Between Django LocMemCache and Uvicorn Workers
- Replace Conditionals with Polymorphism Requires At least One Conditional
- Django Logging Raw SQL Statements
- Learnings From Game of Life
- Django: From Response Content to InMemoryUploadedFile
- JSON Data Type on MySQL and PostgreSQL
- On Web Servers Handling Multiple Requests
- On Callable Units of a Program (aka “methods”)
- TDD and Type-safety
- DIP: Understanding the Levels
- LSP: Definition, Rules, Violations, and Implementation
- OData Responses in Camel-Case for Non-EDMs in ASP.NET Core
- JS Inspired C# Generator
- JWT Validation Middleware in ASP.NET Core
- Convenience Methods, Golden Hammer and Boat Anchor