Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion twitter/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
SECRET_KEY = '+sr35*#-$zo3kj8+ey6mih$fgcrdo6!8n1m*co7)4v14848s6o'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flip Django debug flag to off.


ALLOWED_HOSTS = ['127.0.0.1', '192.168.33.10', 'localhost']
INTERNAL_IPS = ['192.168.65.1']
Expand Down Expand Up @@ -150,3 +150,4 @@
from .local_settings import *
except:
pass
SESSION_COOKIE_SECURE = True
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sets Django's SESSION_COOKIE_SECURE flag if off or missing.