rename directory for app
This commit is contained in:
1 parent
0a5526604a
commit
82dbcf3304
12 files changed
+9
-1
No files matched your search
@@ -1 +1,2 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
|
*.db
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from flask import Flask, render_template, session
|
from flask import Flask, render_template, session
|
||||||
from flask_sqlalchemy import SQLAlchemy
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
from locale import setlocale, LC_ALL
|
from locale import setlocale, LC_ALL
|
||||||
@@ -24,3 +26,6 @@ def contexto_para_templates():
|
|||||||
), 'utf8')
|
), 'utf8')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Faz a importação das views:
|
||||||
|
import app.views.login
|
||||||
|
import app.views.main
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from flask import render_template
|
from flask import render_template
|
||||||
|
from flask.ext.login import login_required
|
||||||
from app import app
|
from app import app
|
||||||
|
|
||||||
@app.route("/")
|
@app.route('/')
|
||||||
|
@login_required
|
||||||
def index():
|
def index():
|
||||||
return render_template('principal.html')
|
return render_template('principal.html')
|
||||||
Reference in new issue
Block a user