Browse files

remove ALLOWED_SUBDOMAIN, update DOMAIN

  • Loading branch information...
1 parent 802de3f commit b5bdd406147fff331d48d086aeb3fd8ed6105e44 @nopri committed Oct 15, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 app.py
View
5 app.py
@@ -68,14 +68,13 @@ def cget(section, option, default='', strip=True):
############################### CONSTANT ###############################
-VERSION = '0.4'
+VERSION = '0.5'
NAME = 'Online Store'
PRECISION = 2
FORCE_PROMOTE = False
PS = os.path.sep
CURDIR = os.path.dirname(__file__)
-DOMAIN = CURDIR.split(PS)[-1]
-ALLOWED_SUBDOMAIN = ['www']
+DOMAIN = web.ctx.env.get('host', 'unknown')
CONFIG_FILE_DEFAULT = 'config.ini'
BASEURL_DEFAULT = '/store'
HOME_DEFAULT = '/product'

0 comments on commit b5bdd40

Please sign in to comment.