坑:
setting 把templates和static放进去,
'DIRS': [BASE_DIR+"/templates",],
STATICFILES_DIRS = (os.path.join(BASE_DIR,'static'),)
url中 url(r'^index/', index), 逗号一定要有
如果让其他珠玑访问 ALLOWED_HOSTS = ['192.168.0.107']
坑:
setting 把templates和static放进去,
'DIRS': [BASE_DIR+"/templates",],
STATICFILES_DIRS = (os.path.join(BASE_DIR,'static'),)
url中 url(r'^index/', index), 逗号一定要有
如果让其他珠玑访问 ALLOWED_HOSTS = ['192.168.0.107']