关注this post和this answer我已经设置了一个单独的文件来存储SECRETY_KEY
并将其导入主settings.py
文件。但是,我收到以下错误:
ImportError: No module named 'settings_secret'
settings_secret.py
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '..key'
settings.py
from settings_secret import *
和 .gitignore
# Secret Settings
settings_secret.py
答案 0 :(得分:1)
试试, Application.CommandBars("Worksheet Menu Bar").Controls _
("&Data").Controls("&Filter").Controls("&Advanced Filter...").Enabled = False
。 [dot]确保您从当前模块导入。