Set debug to false landing-page-2014
authorPeter Koppatz <pkoppatz@web.de>
Mon, 16 Dec 2013 05:05:01 +0100
branchlanding-page-2014
changeset 396ce477e2df12
parent 37 a24b150674bf
child 40 56acab881092
Set debug to false
pymove3d.py
templates/theme.html
     1.1 --- a/pymove3d.py	Wed Dec 11 08:16:07 2013 +0100
     1.2 +++ b/pymove3d.py	Mon Dec 16 05:05:01 2013 +0100
     1.3 @@ -11,14 +11,13 @@
     1.4  from flask.ext.babel import Babel
     1.5  
     1.6  app = Flask(__name__)
     1.7 -babel = Babel(app)
     1.8 +#babel = Babel(app)
     1.9  
    1.10 -@babel.localeselector
    1.11 -def get_locale():
    1.12 -    return "en" #request.accept_languages.best_match(LANGUAGES.keys())
    1.13 +#@babel.localeselector
    1.14 +#def get_locale():
    1.15 +#    return "en" #request.accept_languages.best_match(LANGUAGES.keys())
    1.16  
    1.17  @app.route("/")
    1.18 -
    1.19  @app.route("/index")
    1.20  def index():
    1.21      return render_template("index.html")
    1.22 @@ -52,6 +51,6 @@
    1.23      return render_template("404.html"), 404
    1.24  
    1.25  if __name__ == "__main__":
    1.26 -    app.run(host='localhost', port=5014, debug=True)
    1.27 +    app.run(host='localhost', port=5018, debug=False)
    1.28  
    1.29  
     2.1 --- a/templates/theme.html	Wed Dec 11 08:16:07 2013 +0100
     2.2 +++ b/templates/theme.html	Mon Dec 16 05:05:01 2013 +0100
     2.3 @@ -67,8 +67,8 @@
     2.4         	{% block jumbotron %}{% endblock %}
     2.5          <div class="clear"></div>
     2.6        </div>
     2.7 -       	{% block body %}{% endblock %}{% include "footer.html" %}
     2.8 -      
     2.9 +       	{% block body %}{% endblock %}
    2.10 +        {% include "footer.html" %}
    2.11      </div> <!-- /container -->
    2.12       
    2.13  
Impressum Datenschutzerklärung