Open in app

Sign In

Write

Sign In

Batiste
Batiste

92 Followers

Home

About

Jan 4

Django Rest Framework authentication and Django Middleware: Why request.user is anonymous?

When using DRF and in in the context of Django middleware I have often found to be the case that request.user is an AnonymousUser. Why is that? It is because the DRF authentication classes are executed after all the normal Django middleware are already in their get_response stage. class DjangoMiddleware…

Django

2 min read

Django Rest Framework authentication and Django Middleware: Why request.user is anonymous?
Django Rest Framework authentication and Django Middleware: Why request.user is anonymous?
Django

2 min read


Published in Towards Dev

·Dec 31, 2022

The Blop language and a parser generator

After years of experimenting around on how to write an efficient compiler in JavaScript, I decided to test my latest creation by creating a language that can be used for something in the real world: a language for the web. My contempt for Angular’s dependency injection and React’s Redux boilerplate…

Compilers

5 min read

The Blop language and a parser generator
The Blop language and a parser generator
Compilers

5 min read


Dec 31, 2022

Debugging a Python project with VSCode and Docker

This guide explains how to setup a Django project and Docker together for debugging sessions within VSCode. We will follow the steps detailed here. The specifics in this document are about Django but it should work all the the same for FastAPI or any dockerized Python code. Given that you…

Vscode

2 min read

Debugging a Python project with VSCode and Docker
Debugging a Python project with VSCode and Docker
Vscode

2 min read


Nov 21, 2022

Django + Celery + Sentry + JSON Logging meta data

When working with a Python service it can be daunting to make all those tools work together and output useful logs with proper meta data. This document is a step by step setup guide for Django. But is can be also applied to FastAPI or flask with minimal changes. First…

Logs

4 min read

Django + Celery + Sentry + JSON Logging meta data
Django + Celery + Sentry + JSON Logging meta data
Logs

4 min read

Batiste

Batiste

92 Followers

I am me!

Following
  • Yoan Blanc

    Yoan Blanc

  • Raphaël Briner

    Raphaël Briner

  • David Gut

    David Gut

  • Iwan Gulenko

    Iwan Gulenko

  • Jessica

    Jessica

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech