Added urls library

This commit is contained in:
Antonio de la Rosa 2019-12-29 14:24:09 +01:00
parent 114342bc9b
commit 0d57d44037
4 changed files with 118 additions and 8 deletions

View file

@ -1,4 +1,4 @@
from flask import Blueprint, render_template
from flask import Blueprint, redirect
from settings import config
from paramecio2.libraries.mtemplates import PTemplate, env_theme
@ -14,6 +14,12 @@ def home():
return t.load_template('welcome.phtml', title="Welcome", content='Welcome to the real world')
#return render_template('welcome.html', title="Welcome")
"""
@welcome_app.route('/welcome/redirect')
def welcome_redirect():
return redirect('/welcome')
"""
if config.default_module=="welcome":

View file

@ -69,7 +69,7 @@
<h1>${title}</h1>
<div class="body">
${lang('cuchulutrip', 'FUCK', 'FUCK')}
${content}
</div>
<div class="footer">Paramecio, a system created for create webapps</div>