小编ohl*_*hlr的帖子

Disable health-check logging in AWS ELB Django Application

I have a Django application running on aws-elastic-beanstalk. I try to disable the logs caused by my health-checks. The health-checks are already routed to a seperate page.

Elastic-beanstalk uses Apache + mod_wsgi.

The following code is a solution that works with nginx servers. I try to create something similar for apache.

I found out that conditional Logs are probably the appropriate way to do it with an Apache Server.

My directory struture looks like the following

/etc/httpd/
  - conf 
      - …
Run Code Online (Sandbox Code Playgroud)

apache django mod-wsgi amazon-web-services amazon-elastic-beanstalk

6
推荐指数
1
解决办法
349
查看次数

某些浏览器上的验证码超时

使用react-google-recaptcha-v3执行

await executeRecaptcha("contact");
Run Code Online (Sandbox Code Playgroud)

某些浏览器上的超时。我不确定根本原因是否在存储库(问题)或上游,因为它只在某些浏览器配置中失败。非常感谢任何帮助。

javascript recaptcha reactjs recaptcha-v3 react-google-recaptcha

5
推荐指数
0
解决办法
759
查看次数

Material Ui Avatar 添加海拔

我尝试将高程(阴影)添加到 MUI 头像组件https://material-ui.com/components/avatars/#image-avatars

<Avatar alt="Cindy Baker" src="/static/images/avatar/3.jpg" />
Run Code Online (Sandbox Code Playgroud)

用半径包裹 AvatarpaperCard增加半径。

我还尝试boxShadow使用 makeStyles 和 MUI 阴影https://material-ui.com/system/shadows/设置头像,但没有成功。

javascript css typescript reactjs material-ui

3
推荐指数
1
解决办法
1481
查看次数

Django 覆盖 password_reset_subject.txt 不会改变主题

registration/password_reset_subject.txt按照此处的建议创建了更改密码重置电子邮件的主题。但是,它不会生效。

电子邮件主题保持不变 Subject: Password reset on 127.0.0.1:8000

python django django-2.1

2
推荐指数
1
解决办法
567
查看次数