Django, Next.js

PyQt -> Django + Next.js

The customer’s computer environment is quite complex, with machines running Windows 7, Windows 10, and Windows 11. Although the PyQt application we developed works on about 90% of these systems, …

Django Views

^: indicating the begin $: indicateing the last [0-9]{4}: 4 characters and each character is 0~9. (?P<by_date>…….), will pass the value as by_date parameter to the view. r preceding the …

Use Docker-Compose to help Django Development

cd ~ mkdir practice_folder #create a virtualenv python -m venv .venv .venv\scripts\activate.bat pip install django~=4.0.0 psycopg2-binary~=2.9.9 django-admin startproject django_project . python manage.py runserver 0.0.0.0:8000 pip freeze > requirements.txt create a …

Dockerfile for pyenv environment

FROM ubuntu:20.04 ENV TZ = Asia\Taipei ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \apt-get install -y \build-essential \libssl-dev \zlib1g-dev \libbz2-dev \libreadline-dev \libsqlite3-dev \wget \curl \llvm \libncurses5-dev \libncursesw5-dev \xz-utils \tk-dev \libffi-dev \liblzma-dev …