Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

localhost works again

  • Loading branch information...
commit e6a1a00ef95e9a7f0be2c5851f7b7807ee65690f 1 parent fd242ed
@jpscaletti jpscaletti authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  clay/__init__.py
  2. +3 −3 clay/main.py
View
2  clay/__init__.py
@@ -13,4 +13,4 @@
from main import Clay
-__version__ = '2.3'
+__version__ = '2.3.1'
View
6 clay/main.py
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.