48SESSION_COOKIE_SECURE = config("SESSION_COOKIE_SECURE", cast=bool)
49# SESSION_COOKIE_AGE = 2 weeks by default
50CSRF_COOKIE_SECURE = config("CSRF_COOKIE_SECURE", cast=bool)
51# SECURE_HSTS_PRELOAD = True52# SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
53
54# ==================================== AWS ========================================== #
42
43REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"] = ["rest_framework.renderers.JSONRenderer"]
44
45# SECURE_HSTS_SECONDS = config("SECURE_HSTS_SECONDS")46# SECURE_SSL_REDIRECT = True
47# SECURE_HSTS_INCLUDE_SUBDOMAINS = True
48SESSION_COOKIE_SECURE = config("SESSION_COOKIE_SECURE", cast=bool)
It is recommended to remove any commented code in your codebase.
for item in sequence:
# print(item)
do_something(item)
# def old_function():
# '''Older implementation that has been replaced'''
# data = get_data()
# api.post(data)
for item in sequence:
do_something(item)