9 Commits

9 changed files with 55 additions and 44 deletions

View File

@ -1,5 +1,18 @@
# Change Log
## [1.0.2] 2021-05-11
### Improvements
- Bump Codebase: [Flask Dashboard](https://github.com/app-generator/boilerplate-code-flask-dashboard) v1.0.5
- Freeze used versions in `requirements.txt`
- flask_sqlalchemy = 2.4.4
- sqlalchemy = 1.3.23
## [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
### Initial Release

View File

@ -1,6 +1,6 @@
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
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,6 +1,6 @@
# [Black Dashboard Flask](https://www.creative-tim.com/product/black-dashboard-flask) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/home?status=Material%20Dashboard,%20a%20free%20Material%20Bootstrap%204%20Admin%20Template%20%E2%9D%A4%EF%B8%8F%20https%3A//bit.ly/2Lyat1Y%20%23bootstrap%20%23material%20%23design%20%23developers%20%23freebie%20%20via%20%40CreativeTim)
![version](https://img.shields.io/badge/version-1.0.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/black-dashboard-flask.svg?maxAge=2592000)](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/black-dashboard-flask.svg?maxAge=2592000)](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aissue+is%3Aclosed) [![Join the chat at https://gitter.im/NIT-dgp/General](https://badges.gitter.im/NIT-dgp/General.svg)](https://gitter.im/creative-tim-general/Lobby) [![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/E4aHAQy)
![version](https://img.shields.io/badge/version-1.0.1-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/black-dashboard-flask.svg?maxAge=2592000)](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/black-dashboard-flask.svg?maxAge=2592000)](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aissue+is%3Aclosed) [![Join the chat at https://gitter.im/NIT-dgp/General](https://badges.gitter.im/NIT-dgp/General.svg)](https://gitter.im/creative-tim-general/Lobby) [![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/E4aHAQy)
![Black Dashboard Flask - Admin Dashboard coded in Django.](https://github.com/creativetimofficial/black-dashboard-flask/blob/master/media/black-dashboard-flask-intro.gif)
@ -9,7 +9,7 @@
> Free product - **Flask Dashboard** starter project - Features:
- 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
- Alembic (DB schema migrations)
- Modular design with **Blueprints**

View File

@ -93,14 +93,6 @@ def logout():
logout_user()
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
@login_manager.unauthorized_handler

View File

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

View File

@ -13,7 +13,7 @@
<div class="copyright">
&copy; <a target="_blank" rel="noopener noreferrer"
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>
</footer>

View File

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

View File

@ -1,8 +1,9 @@
flask
flask_login
flask_migrate
flask_wtf
flask_sqlalchemy==2.*
email_validator
python-decouple
gunicorn
flask==1.1.2
flask_login==0.5.0
flask_migrate==2.7.0
flask_wtf==0.14.3
flask_sqlalchemy==2.4.4
sqlalchemy==1.3.23
email_validator==1.1.2
python-decouple==3.4
gunicorn==20.0.4

8
run.py
View File

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