📚 node [[config py]]
class DefaultConfig(object):
   AGORA_PATH = os.getenv('AGORA_PATH', os.path.join('/home', getpass.getuser(), 'agora'))                         
   # standard: no trailing slashes anywhere in variables.
   # with protocol
   URL_BASE = "https://anagora.org" <button class="pull-url" value="https://anagora.org"">pull</button>
   # without protocol
   URI_BASE = "anagora.org"
   AGORA = URI_BASE

   # EXPERIMENTS
   # experiments can be booleans or probabilities (reals in 0..1).                                                 
   # release process: set them initially to False/0 in the DefaultConfig and then override in the right environment.
   ENABLE_CTZN = False
   ENABLE_STATS = False

class ProductionConfig(DefaultConfig):

   # EXPERIMENTS
   ENABLE_CTZN = True
# ENABLE_STATS is False by default

class DevelopmentConfig(DefaultConfig):
   URL_BASE = "http://dev.anagora.org" <button class="pull-url" value="http://dev.anagora.org"">pull</button>
   URI_BASE = "dev.anagora.org"

   # EXPERIMENTS
   ENABLE_CTZN = True
   ENABLE_STATS = True
📖 stoas
⥱ context