If I declare a custom handler404 in your deployment, append slash will not work.
If I request “/1” instead of the URL “/1/”, a 404 Not Found is returned.
If DEBUG = False is applied in the local environment, it will redirect to “/1/”.
If I remove custom handler404 in deployment environment, it will redirect to “/1/”.
I want to know what the problem is.
There are only three things that differ from the local deployment environment: DEBUG, STATICFILES_DIRS, and STATIC_ROOT, but I don’t think these affect my problem.