Browse Source

cleaning config

Axolotle 1 year ago
parent
commit
b1d160a9ae
3 changed files with 2 additions and 8 deletions
  1. 1
    1
      app/__init__.py
  2. 1
    1
      config.py
  3. 0
    6
      manage.py

+ 1
- 1
app/__init__.py View File

@@ -18,7 +18,7 @@ base_path = op.dirname(__file__)
18 18
 
19 19
 def create_app(config_name):
20 20
     app = Flask(__name__, static_url_path='/staticsite')
21
-    app.debug = True
21
+
22 22
     # add haml-like template syntax to jinja_env
23 23
     app.jinja_env.add_extension('hamlish_jinja.HamlishExtension')
24 24
     app.config.from_object(config[config_name])

+ 1
- 1
config.py View File

@@ -15,7 +15,7 @@ class Config:
15 15
 class DevelopmentConfig(Config):
16 16
     DEBUG = True
17 17
     TEMPLATES_AUTO_RELOAD = True
18
-    EXPLAIN_TEMPLATE_LOADING = True
18
+    # EXPLAIN_TEMPLATE_LOADING = True
19 19
     MAIL_SERVER = 'radiorhino.eu'
20 20
     MAIL_PORT = 465
21 21
     MAIL_USE_TLS = True

+ 0
- 6
manage.py View File

@@ -9,12 +9,6 @@ app = create_app(os.getenv('FLASK_CONFIG') or 'development')
9 9
 manager = Manager(app)
10 10
 alchemydumps = AlchemyDumps(app,db)
11 11
 
12
-# allow jinja statements to be wrote without '{% %}' syntax
13
-app.jinja_env.line_statement_prefix = '%'
14
-# remove some whitespaces and new lines
15
-app.jinja_env.trim_blocks = True
16
-app.jinja_env.lstrip_blocks = True
17
-
18 12
 def make_shell_context():
19 13
     return dict(app=app, db=db)
20 14
 

Loading…
Cancel
Save