rename directory for app

This commit is contained in:
Luiz Gustavo Costa (gugabsd) committed 2013-01-07 16:40:23 -02:00
1 parent 0a5526604a
commit 82dbcf3304
12 files changed
+9 -1

No files matched your search

+1
View File
@@ -1 +1,2 @@
*.pyc
*.db
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
from flask import Flask, render_template, session
from flask_sqlalchemy import SQLAlchemy
from locale import setlocale, LC_ALL
@@ -24,3 +26,6 @@ def contexto_para_templates():
), '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 -*-
from flask import render_template
from flask.ext.login import login_required
from app import app
@app.route("/")
@app.route('/')
@login_required
def index():
return render_template('principal.html')