Django 在加载 settings
的时候会根据环境变量选择不同的 settings
。
参考 manage.py +6
,os.environ.setdefault
设置了一个名为 DJANGO_SETTINGS_MODULE
、值为目标 settings
的环境变量。
在生产环境中,uWSGI 会根据指定的 WSGI Module 加载程序。Django 的 wsgi.py
# -*- coding:utf-8 -*- | |
""" | |
BSD 3-Clause License | |
Copyright (c) 2021, Andrew Junzki | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, |
# -*- coding:utf-8 -*- | |
""" | |
BSD 3-Clause License | |
Copyright (c) 2021, Andrew Junzki | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name DingTalk Watermark-FREE | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description DingTalk Watermark-FREE | |
// @author Andrew Junzki | |
// @match https://im.dingtalk.com/* | |
// @grant none | |
// ==/UserScript== |
# -*- coding:utf-8 -*- | |
import os | |
import sys | |
import atexit | |
import signal | |
import codecs | |
def daemonize(pidfile, stdin='/dev/null', | |
stdout='/dev/null', |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
namespace zh_clean_csharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |