etwist/twconfig.py
changeset 8828 1437c47925c3
parent 8669 62213a34726e
child 8989 8742f4bf029f
equal deleted inserted replaced
8826:02ddda541433 8828:1437c47925c3
   101 
   101 
   102     def server_file(self):
   102     def server_file(self):
   103         return join(self.apphome, '%s-%s.py' % (self.appid, self.name))
   103         return join(self.apphome, '%s-%s.py' % (self.appid, self.name))
   104 
   104 
   105     def default_base_url(self):
   105     def default_base_url(self):
   106         from socket import gethostname
   106         from socket import getfqdn
   107         return 'http://%s:%s/' % (self['host'] or gethostname(), self['port'] or 8080)
   107         return 'http://%s:%s/' % (self['host'] or getfqdn(), self['port'] or 8080)
   108 
   108 
   109 
   109 
   110 CONFIGURATIONS.append(TwistedConfiguration)
   110 CONFIGURATIONS.append(TwistedConfiguration)
   111 
   111 
   112 try:
   112 try: