/usr/local/lib/python3.9/site-packages/django/views/decorators
from functools import wraps def no_append_slash(view_func): """ Mark a view function as excluded from CommonMiddleware's APPEND_SLASH redirection. """ # view_func.should_append_slash = False would also work, but decorators are # nicer if they don't have side effects, so return a new function. @wraps(view_func) def wrapper_view(*args, **kwargs): return view_func(*args, **kwargs) wrapper_view.should_append_slash = False return wrapper_view
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
cache.py
Edit
clickjacking.py
Edit
common.py
Edit
csrf.py
Edit
debug.py
Edit
gzip.py
Edit
http.py
Edit
vary.py
Edit