Herald Tech Notes
built
  • Home
  • Favorite
  • About
  • Search
Subscribe
Django

Django: Changing User Model in Mid-Project

  • Herald Yu

Herald Yu

Aug 9, 2019 • 1 min read
  • https://www.caktusgroup.com/blog/2019/04/26/how-switch-custom-django-user-model-mid-project/
  • https://ruddra.com/posts/django-custom-user-migration-mid-phase-project/
  • https://code.djangoproject.com/ticket/25313
  • https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#extending-the-existing-user-model

Sign up for more like this.

Enter your email
Subscribe

Manjaro Gnome + XRDP 最佳配置方案

五一假期闲来无事,逐一尝试了 Manjaro 21.2.6 官方维护的 xfce、KDE 和 Gnome 桌面环境的发行版,最终结论是 Gnome 在 xrdp 使用上功能相对最健全。xfce 和 KDE 虽然可以成功通过 xrdp 连接到桌面,但无法弹出密码认证窗口,这会导致无法使用系统自带的应用管理器安装程序,像 GParted 等需要获取管理员权限的 GUI 程序也无法使用。 当然,从 XRDP 远程桌面的角度来看,Gnome 版本的 Manjaro 也不是开箱即用。常规方法配置的 xrdp 连接后会提示“发生了系统错误,所有插件都已禁用,是否注销登录”,这个问题需要用第三方的补丁来解决,虽然打补丁也没多复杂,但毕竟多了步骤,就给 xrdp 的配置又增加了一层门槛。

  • Herald Yu
Herald Yu May 3, 2022 • 2 min read

Docker hub IPv6

如果只有 IPv6 连接,可以将 Docker Hub 镜像修改为支持 IPv6 的服务器。 编辑 /etc/docker/daemon.json: { "registry-mirrors": ["https://registry.ipv6.docker.com"] } 重启服务 sudo systemctl daemon-reload sudo systemctl restart docker

  • Herald Yu
Herald Yu Jan 30, 2022 • 1 min read

macOS 使用 privoxy

安装 brew install privoxy 启动 privoxy 服务 brew services restart privoxy 禁用 privoxy 服务 /opt/homebrew/opt/privoxy/sbin/privoxy --no-daemon /opt/homebrew/etc/privoxy/config 使用 设置代理 浏览器设置代理:127.0.0.1:8118 访问管理界面 http://config.privoxy.org/show-status http://p.p

  • Herald Yu
Herald Yu Jan 28, 2022 • 1 min read
Herald Tech Notes © 2022
Powered by Ghost