Added urls library
This commit is contained in:
parent
114342bc9b
commit
0d57d44037
4 changed files with 118 additions and 8 deletions
|
|
@ -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":
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue