... ware" , "mysite.middleware.CustomHeaderRemoteUserMiddleware" , "..." , ] 警告 RemoteUserMiddleware must not be deployed in configurations where a client can supply the header. You must be sure that your web server or reverse proxy always sets or strips that he ... META can only be set by your WSGI server, not directly from an HTTP request header. This warning applies under ASGI in all configurations, because there is no equivalent for a WSGI server's ability to place a trusted value in the environ. ASGI deployments must ... ... st normalizes header names following WSGI conventions, mapping hyphens to underscores. As a result, even in configurations where reverse proxies carefully strip security-sensitive headers named with hyphens, such a header could be spoofed by sup ... ... st normalizes header names following WSGI conventions, mapping hyphens to underscores. As a result, even in configurations where reverse proxies carefully strip security-sensitive headers named with hyphens, such a header could be spoofed by sup ... ... to define any creation order dependencies in your database configuration. Most users -- even users with multiple-database configurations -- need not be concerned about the data loss bug, or the manual configuration of TEST_DEPENDENCIES . See the original prob ... ... st headers can reach the Django application. However, it has been reported to us that even with the recommended web server configurations there are still techniques available for tricking many common web servers into supplying the application with an incorrect ... ... st headers can reach the Django application. However, it has been reported to us that even with the recommended web server configurations there are still techniques available for tricking many common web servers into supplying the application with an incorrect ... ... ation ASGIRequest normalizes header names following WSGI conventions, mapping hyphens to underscores. As a result, even in configurations where reverse proxies carefully strip security-sensitive headers named with hyphens, such a header could be spoofed by sup ... ... lly, before you deploy your application to production, you should run through our deployment checklist to ensure that your configurations are suitable. WSGI とともにデプロイするには How to use Django with Granian Django を Gunicorn とともに使う Django を uWSGI ... ... entirely if an application doesn't have any models. Applications can be relabeled with the label attribute of application configurations, to work around label conflicts. The name of applications can be customized in the admin with the verbose_name of applicat ... ion configurations. The admin automatically calls autodiscover() when Django starts. You can consequently remove this line from your URLconf. ... Django imports all application configurations and models as soon as it starts, through a deterministic and straightforward process. This should make it easier to diagno ... ... ses Django's SMTP email backend , which sends using the standard SMTP protocol. This backend is useful for many production configurations, including SMTP servers in your own infrastructure and most commercial email service providers (ESPs). There are also thir ... erent services for transactional notifications and bulk marketing email, etc. The MAILERS setting can define multiple mail configurations. For example: import os MAILERS = { "default" : { "BACKEND" : "django.core.mail.backends.smtp.EmailBackend" , "OPTIONS" : ... " : "django.core.mail.backends.smtp.EmailBackend" , "OPTIONS" : { "host" : "localhost" , }, }, } This defines three mailer configurations: "default" sends through an SMTP server at smtp.example.net with a TLS secured connection. It reads an account id and API ... 2026年10月08日