7 Commits

8 changed files with 37 additions and 35 deletions

View File

@ -1,5 +1,10 @@
# Change Log # Change Log
## [1.0.1] 2021-02-10
### Improvements
- Bump UI: [Jinja Template Black](https://github.com/app-generator/jinja-black-dashboard) v1.0.1
- Bump Codebase: [Flask Dashboard](https://github.com/app-generator/boilerplate-code-flask-dashboard) v1.0.4
## [1.0.0] 2020-08-21 ## [1.0.0] 2020-08-21
### Initial Release ### Initial Release

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2019 - present Creative-Tim / AppSeed.us Copyright (c) 2019 - present Creative-Tim / [AppSeed.us](https://appseed.us)
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -9,7 +9,7 @@
> Free product - **Flask Dashboard** starter project - Features: > Free product - **Flask Dashboard** starter project - Features:
- UI Kit: **Black Dashboard** (Free Version) provided by **[Creative-Tim](https://www.creative-tim.com/)** - UI Kit: **Black Dashboard** (Free Version) provided by **[Creative-Tim](https://www.creative-tim.com/)**
- [Codebase](https://github.com/app-generator/boilerplate-code-flask-dashboard) - provided by **[AppSeed](https://appseed.us/)** - Flask Codebase - provided by **[AppSeed](https://appseed.us/)**
- SQLite, PostgreSQL, SQLAlchemy ORM - SQLite, PostgreSQL, SQLAlchemy ORM
- Alembic (DB schema migrations) - Alembic (DB schema migrations)
- Modular design with **Blueprints** - Modular design with **Blueprints**

View File

@ -93,14 +93,6 @@ def logout():
logout_user() logout_user()
return redirect(url_for('base_blueprint.login')) return redirect(url_for('base_blueprint.login'))
@blueprint.route('/shutdown')
def shutdown():
func = request.environ.get('werkzeug.server.shutdown')
if func is None:
raise RuntimeError('Not running with the Werkzeug Server')
func()
return 'Server shutting down...'
## Errors ## Errors
@login_manager.unauthorized_handler @login_manager.unauthorized_handler

View File

@ -22,7 +22,7 @@
{% if msg %} {% if msg %}
{{ msg | safe }} {{ msg | safe }}
{% else %} {% else %}
Default Credentials: test / pass Add your credentials
{% endif %} {% endif %}
</h6> </h6>
</div> </div>

View File

@ -13,7 +13,7 @@
<div class="copyright"> <div class="copyright">
&copy; <a target="_blank" rel="noopener noreferrer" &copy; <a target="_blank" rel="noopener noreferrer"
href="https://www.creative-tim.com/">Creative-Tim</a> href="https://www.creative-tim.com/">Creative-Tim</a>
- coded by <a target="_blank" rel="noopener noreferrer" href="https://appseed.us?ref=ct">AppSeed</a> - coded by <a target="_blank" rel="noopener noreferrer" href="https://appseed.us">AppSeed</a>
</div> </div>
</div> </div>
</footer> </footer>

View File

@ -1,22 +1,21 @@
{ {
"name": "argon-dashboard-flask", "name": "black-dashboard-flask",
"mastertemplate": "boilerplate-code-flask-dashboard", "mastertemplate": "boilerplate-code-flask-dashboard",
"version": "1.0.0", "version": "1.0.1",
"description": "Template project - Flask Boilerplate Code", "description": "Template project - Flask Boilerplate Code ",
"scripts": {},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/creativetimofficial/argon-dashboard-flask" "url": "https://github.com/creativetimofficial/black-dashboard-flask"
}, },
"bugs": { "bugs": {
"url": "https://github.com/creativetimofficial/argon-dashboard-flask/issues", "url": "https://github.com/creativetimofficial/black-dashboard-flask/issues",
"email": "support@appseed.us" "email": "support@appseed.us"
}, },
"author": "AppSeed App Generator <support@appseed.us> (https://appseed.us)", "author": "Creative-Tim / AppSeed.us",
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"
}, },
"dependencies": { "dependencies": {},
}, "devDependencies": {}
"devDependencies": {
}
} }

8
run.py
View File

@ -7,12 +7,13 @@ from flask_migrate import Migrate
from os import environ from os import environ
from sys import exit from sys import exit
from decouple import config from decouple import config
import logging
from config import config_dict from config import config_dict
from app import create_app, db from app import create_app, db
# WARNING: Don't run with debug turned on in production! # WARNING: Don't run with debug turned on in production!
DEBUG = config('DEBUG', default=True) DEBUG = config('DEBUG', default=True, cast=bool)
# The configuration # The configuration
get_config_mode = 'Debug' if DEBUG else 'Production' get_config_mode = 'Debug' if DEBUG else 'Production'
@ -28,5 +29,10 @@ except KeyError:
app = create_app( app_config ) app = create_app( app_config )
Migrate(app, db) Migrate(app, db)
if DEBUG:
app.logger.info('DEBUG = ' + str(DEBUG) )
app.logger.info('Environment = ' + get_config_mode )
app.logger.info('DBMS = ' + app_config.SQLALCHEMY_DATABASE_URI )
if __name__ == "__main__": if __name__ == "__main__":
app.run() app.run()