Utilize pylint como linter y corregi la mayoria de los errores

This commit is contained in:
Daniel Cortes
2019-03-12 17:11:44 -03:00
parent b4b654c62f
commit 3b5008f9ed
10 changed files with 697 additions and 67 deletions

11
files/admin.py Normal file
View File

@@ -0,0 +1,11 @@
from flask import Flask, Blueprint, flash, request, redirect, url_for
from flask import current_app, render_template, jsonify
from files.auth import admin_required
from files.models import Category, db
bp = Blueprint('admin', __name__, url_prefix='/admin')
@bp.route('/')
def index():
return render_template('admin/index.html')