Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update settings.py #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions website/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
'ENGINE': 'django.db.backends.mysql',
'NAME':conf.get('Mysql','NAME'),
"HOST":conf.get('Mysql','HOST'),
"POST":conf.get('Mysql','POST'),
"PORT":conf.get('Mysql','PORT'),
"USER":conf.get('Mysql','USER'),
"PASSWORD":conf.get('Mysql','PASSWORD'),
'OPTIONS': {
Expand Down Expand Up @@ -276,4 +276,4 @@
# #SESSION_COOKIE_HTTPONLY = True # 是否Session的cookie只支持http传输
SESSION_COOKIE_AGE = 3600 # Session的cookie失效日期(2周)
# SESSION_EXPIRE_AT_BROWSER_CLOSE = False # 是否关闭浏览器使得Session过期
SESSION_SAVE_EVERY_REQUEST = True # 是否每次请求都保存Session,默认修改之后才保存
SESSION_SAVE_EVERY_REQUEST = True # 是否每次请求都保存Session,默认修改之后才保存