Пример #1
0
_.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
_.DJANGOAPP.LINK_DIR_           = lambda: join(_.DJANGOAPP.ROOT_DIR, _.DJANGOAPP.PROJ_DIR)

_.DJANGOAPP.SETTINGS            = AttrDict()
das = _.DJANGOAPP.SETTINGS
das.STATICFOLDER                = 'static'
das.STATICURL                   = '/static'
das.MEDIAFOLDER                 = 'media'
das.MEDIAURL                    = '/media'