Skip to content

Instantly share code, notes, and snippets.

设置独立的生产环境

1. 原理

Django 在加载 settings 的时候会根据环境变量选择不同的 settings

参考 manage.py +6os.environ.setdefault 设置了一个名为 DJANGO_SETTINGS_MODULE、值为目标 settings 的环境变量。

在生产环境中,uWSGI 会根据指定的 WSGI Module 加载程序。Djangowsgi.py

@stared
stared / live_loss_plot_keras.ipynb
Last active February 25, 2023 10:20
Live loss plot for training models in Keras (see: https://github.com/stared/livelossplot/ for a library)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vietjtnguyen
vietjtnguyen / logistic-regression.ipynb
Last active January 4, 2021 10:08
IPython Notebook on Logistic Regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.