Compare commits
7 Commits
v1.0.0
...
v1.0.1-rc1
| Author | SHA1 | Date | |
|---|---|---|---|
| 37dd87d851 | |||
| 0436e2843b | |||
| 0f7fc0cd35 | |||
| fec08795e1 | |||
| 1fe990398a | |||
| 971b5c8b80 | |||
| 912fc7ab40 |
@ -1,5 +1,10 @@
|
||||
# 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
|
||||
### Initial Release
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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**
|
||||
|
||||
@ -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
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
{% if msg %}
|
||||
{{ msg | safe }}
|
||||
{% else %}
|
||||
Default Credentials: test / pass
|
||||
Add your credentials
|
||||
{% endif %}
|
||||
</h6>
|
||||
</div>
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<div class="copyright">
|
||||
© <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>
|
||||
|
||||
39
package.json
39
package.json
@ -1,22 +1,21 @@
|
||||
{
|
||||
"name": "argon-dashboard-flask",
|
||||
"mastertemplate": "boilerplate-code-flask-dashboard",
|
||||
"version": "1.0.0",
|
||||
"description": "Template project - Flask Boilerplate Code",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/creativetimofficial/argon-dashboard-flask"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/creativetimofficial/argon-dashboard-flask/issues",
|
||||
"email": "support@appseed.us"
|
||||
},
|
||||
"author": "AppSeed App Generator <support@appseed.us> (https://appseed.us)",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
}
|
||||
"name": "black-dashboard-flask",
|
||||
"mastertemplate": "boilerplate-code-flask-dashboard",
|
||||
"version": "1.0.1",
|
||||
"description": "Template project - Flask Boilerplate Code ",
|
||||
"scripts": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/creativetimofficial/black-dashboard-flask"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/creativetimofficial/black-dashboard-flask/issues",
|
||||
"email": "support@appseed.us"
|
||||
},
|
||||
"author": "Creative-Tim / AppSeed.us",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {}
|
||||
}
|
||||
8
run.py
8
run.py
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user