Yes, the default is
True, so if you don’t provide it in your settings file it will be
Any setting that is not defined in your settings file will use the default value, which is provided in
In your settings.py in the installed apps you might notice you have
This middleware takes care of adding ‘/’ to the end of URLs.
Snippet from the documentation:
Adds a few conveniences for perfectionists:
Forbids access to user agents in the DISALLOWED_USER_AGENTS setting, which should be a list of compiled regular expression objects.
Performs URL rewriting based on the APPEND_SLASH and PREPEND_WWWsettings.
If APPEND_SLASH is True and the initial URL doesn’t end with a slash, and it is not found in the URLconf, then a new URL is formed by appending a slash at the end. If this new URL is found in the URLconf, then Django redirects the request to this new URL. Otherwise, the initial URL is processed as usual.
For example, foo.com/bar will be redirected to foo.com/bar/ if you don’t have a valid URL pattern for foo.com/bar but do have a valid pattern for foo.com/bar/.
You can read more here :
- TypeError: view must be a callable or a list/tuple in the case of include()
- Object of type 'AuthToken' is not JSON serializable