Utilize pylint como linter y corregi la mayoria de los errores
This commit is contained in:
11
files/admin.py
Normal file
11
files/admin.py
Normal 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')
|
||||
Reference in New Issue
Block a user