|
@ -14,7 +14,7 @@ from flask_login import current_user, login_required, logout_user |
|
|
from flask_wtf.csrf import CSRFError |
|
|
from flask_wtf.csrf import CSRFError |
|
|
|
|
|
|
|
|
from adminpage import AdminPage |
|
|
from adminpage import AdminPage |
|
|
from app import db, create_app, login_manager |
|
|
from app import create_app, login_manager, db |
|
|
from describer.describe_files import describer |
|
|
from describer.describe_files import describer |
|
|
from distribusikan.distribusikan import distribusikan |
|
|
from distribusikan.distribusikan import distribusikan |
|
|
from distribusikan.distribusisinfo import DistribusisInfo |
|
|
from distribusikan.distribusisinfo import DistribusisInfo |
|
@ -29,7 +29,6 @@ from statuspengguna.registeruser import register_user |
|
|
APP = create_app() |
|
|
APP = create_app() |
|
|
stash_page = Blueprint("stash_page", __name__, static_folder="stash") |
|
|
stash_page = Blueprint("stash_page", __name__, static_folder="stash") |
|
|
APP.register_blueprint(stash_page) |
|
|
APP.register_blueprint(stash_page) |
|
|
|
|
|
|
|
|
APP.register_blueprint(describer, url_prefix="/describer") |
|
|
APP.register_blueprint(describer, url_prefix="/describer") |
|
|
APP.register_blueprint(login_section, url_prefix="/login") |
|
|
APP.register_blueprint(login_section, url_prefix="/login") |
|
|
APP.register_blueprint(register_user, url_prefix="/register") |
|
|
APP.register_blueprint(register_user, url_prefix="/register") |
|
@ -59,6 +58,7 @@ def index(): |
|
|
"tags": distribusi.tags.split(","), |
|
|
"tags": distribusi.tags.split(","), |
|
|
} |
|
|
} |
|
|
distribusisindex[distribusi.distribusiname] = singledistribusi |
|
|
distribusisindex[distribusi.distribusiname] = singledistribusi |
|
|
|
|
|
|
|
|
years = uploadform.year.choices |
|
|
years = uploadform.year.choices |
|
|
categories = uploadform.category.choices |
|
|
categories = uploadform.category.choices |
|
|
adminuser = is_adminuser() |
|
|
adminuser = is_adminuser() |
|
|