Skip to content
Programming Notes
  • Home
  • Docker Starters
  • Author.instance().info()
  • Toggle website search
Menu Close
  • Home
  • Docker Starters
  • Author.instance().info()
  • Toggle website search

python

  1. Home>
  2. python

Server-sent Events with Django

  • Post author:Van Ly
  • Post published:2026-03-28
  • Post category:Django/Javascript

Working with Server-sent Events (SSE) with Django

Continue ReadingServer-sent Events with Django

Publishing Django Apps

  • Post author:Van Ly
  • Post published:2026-03-09
  • Post category:Django/Python/Python Publish

Publishing reusable Django apps to PyPI

Continue ReadingPublishing Django Apps

PyTorch in Docker

  • Post author:Van Ly
  • Post published:2024-03-03
  • Post category:Docker/Programming/Python

I'm getting into the fray that is Generative AI since, according to some, my job as a programmer will soon be taken over by some literal code cranking machine. There…

Continue ReadingPyTorch in Docker

Celery with RabbitMQ on Docker

  • Post author:Van Ly
  • Post published:2023-09-04
  • Post category:Celery/Django/Docker/Programming/Python

Picking up from Django app template w/ Docker, here are the steps to add Celery to the Django app. Add RabbitMQ as the message queue Modify docker-compose.yml to include: services:…

Continue ReadingCelery with RabbitMQ on Docker

Django app template w/ Docker

  • Post author:Van Ly
  • Post published:2023-04-22
  • Post category:Django/Docker/Programming/Python

Revisiting https://www.pn.therealvan.com/2021/01/24/postgresql-and-mysql-docker-containers/, this post focuses on a plain Django app with minimal dependencies: exclude pipenv using the default SQLite DB Bootstrapping Start with these files: Dockerfile FROM python:3 ENV PYTHONUNBUFFERED…

Continue ReadingDjango app template w/ Docker

Django I18N on Windows

  • Post author:Van Ly
  • Post published:2021-06-02
  • Post category:Django/i18n/Programming

Concise run book on I18N to get things started Prerequisite Know the difference between locale name and language name: Locale name: <language code>_<COUNTRY CODE> (examples: "en_US", "fr_CA"), case sensitive.Language name:…

Continue ReadingDjango I18N on Windows

Loading Resources from Python Packages

  • Post author:Van Ly
  • Post published:2021-03-28
  • Post category:Programming/Python

Start with importlib_resources Start with the package importlib_resources. Properly export modules In order for a resource to be accessible, the module (or most likely the submodule) containing it needs to…

Continue ReadingLoading Resources from Python Packages
  • 1
  • 2
  • Go to the next page
  • Author.instance().info()
  • Docker Starters
  • Patience-impaired Navigation
Copyright - WordPress Theme by OceanWP