Skip to content

Commit b78eddf

Browse files
author
yangxg
committed
部署
1 parent 65b9933 commit b78eddf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

blogproject/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
SECRET_KEY = 'i3k%m-808v3_)^h7975iw4v&fl5chq41^19j@u+b*vx7dvw*q$'
2323

2424
# SECURITY WARNING: don't run with debug turned on in production!
25-
DEBUG = True
25+
DEBUG = False
2626

27-
ALLOWED_HOSTS = []
27+
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '.zmrenwu.com']
2828

2929
# Application definition
3030

@@ -114,3 +114,4 @@
114114
# https://docs.djangoproject.com/en/1.10/howto/static-files/
115115

116116
STATIC_URL = '/static/'
117+
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

0 commit comments

Comments
 (0)