Permalink
Browse files

localhost works again

  • Loading branch information...
jpscaletti committed Jan 15, 2013
1 parent fd242ed commit e6a1a00ef95e9a7f0be2c5851f7b7807ee65690f
Showing with 4 additions and 4 deletions.
  1. +1 −1 clay/__init__.py
  2. +3 −3 clay/main.py
View
@@ -13,4 +13,4 @@
from main import Clay
-__version__ = '2.3'
+__version__ = '2.3.1'
View
@@ -60,9 +60,6 @@ def make_app(self):
app.jinja_loader = self.get_jinja_loader()
app.jinja_options = self.get_jinja_options()
app.debug = True
- host = self.settings.get('host', DEFAULT_HOST)
- port = self.settings.get('port', DEFAULT_PORT)
- app.config['SERVER_NAME'] = '%s:%s' % (host, port)
self.set_template_context_processors(app)
self.set_urls(app)
return app
@@ -358,5 +355,8 @@ def show_notfound(self, path):
def get_test_client(self):
self.app.testing = True
+ host = self.settings.get('host', DEFAULT_HOST)
+ port = self.settings.get('port', DEFAULT_PORT)
+ self.app.config['SERVER_NAME'] = '%s:%s' % (host, port)
return self.app.test_client()

0 comments on commit e6a1a00

Please sign in to comment.