当前位置: 首页>>代码示例>>Python>>正文


Python AttrDict.APACHE方法代码示例

本文整理汇总了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
开发者ID:RafiKueng,项目名称:SpaghettiLens,代码行数:33,代码来源:settings.py


注:本文中的attrdict.AttrDict.APACHE方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。