本文整理汇总了Python中attrdict.AttrDict.APACHE方法的典型用法代码示例。如果您正苦于以下问题:Python AttrDict.APACHE方法的具体用法?Python AttrDict.APACHE怎么用?Python AttrDict.APACHE使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类attrdict.AttrDict
的用法示例。
在下文中一共展示了AttrDict.APACHE方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: join
# 需要导入模块: from attrdict import AttrDict [as 别名]
# 或者: from attrdict.AttrDict import APACHE [as 别名]
_.COUCHDB.CONF_TMPL = 'couchdb_swlabs.ini' # name of template in local repro
_.COUCHDB.ORGCONF_DIR = '/etc/couchdb/local.d' # here comes the symlink
_.COUCHDB.ORGCONF_PATH_ = lambda: join(_.COUCHDB.ORGCONF_DIR, _.COUCHDB.CONF_NAME)
_.COUCHDB.CONF_PATH_ = lambda: join(_.SVCCONFIG.PATH_(), _.COUCHDB.CONF_NAME)
_.COUCHDB.DATA_DIR = 'couchdb_data'
_.COUCHDB.DATA_PATH_ = lambda: join(_.SVCDATA.PATH_(), _.COUCHDB.DATA_DIR)
_.COUCHDB.ADDRESS = '127.0.0.1'
_.COUCHDB.PORT = 5984
_.COUCHDB.AUTH = "{couch_httpd_auth, default_authentication_handler}"
_.APACHE = AttrDict()
_.APACHE.CONF_NAME = 'apache_swlabs.conf' # filename on server
_.APACHE.CONF_TMPL = 'apache_swlabs.conf' # filename in repro
_.APACHE.ORGCONF_DIR = '/etc/apache2/vhosts.d'
_.APACHE.ORGCONF_PATH_ = lambda: join(_.APACHE.ORGCONF_DIR, _.APACHE.CONF_NAME)
_.APACHE.CONF_PATH_ = lambda: join(_.SVCCONFIG.PATH_(), _.APACHE.CONF_NAME)
_.DJANGOAPP = AttrDict()
_.DJANGOAPP.SRCDIR = _.SRC.DJANGODIR # how is the folder with the django project named in the repro
#_.DJANGOAPP.SRCPATH_ = _.SRC.DJANGODIR
_.DJANGOAPP.ROOT_DIR = 'django_apps' # the name of the root django project on remote, eg the folder name on the server, doesn't depend on local dir (thats SRC_DIR)
_.DJANGOAPP.CONF_TMPL = 'django_machine_settings.py' # the name of the template in the repro
_.DJANGOAPP.CONF_NAME = 'machine_settings.py' # the name of the final config file on srv
_.DJANGOAPP.PROJ_DIR = '_app' # the main folder / project name (where settings.py and wsgi.py are) local and remote