Compare commits
10 Commits
gh-pages
...
v1.0.3-rc1
| Author | SHA1 | Date | |
|---|---|---|---|
| 19f133a1ef | |||
| 23633ad0f5 | |||
| 526ae88e2b | |||
| 37dd87d851 | |||
| 0436e2843b | |||
| 0f7fc0cd35 | |||
| fec08795e1 | |||
| 1fe990398a | |||
| 971b5c8b80 | |||
| 912fc7ab40 |
22
CHANGELOG.md
22
CHANGELOG.md
@ -1,5 +1,25 @@
|
||||
# Change Log
|
||||
|
||||
## [1.0.3] 2021-05-16
|
||||
### Dependencies Update
|
||||
|
||||
- Bump Codebase: [Flask Dashboard](https://github.com/app-generator/boilerplate-code-flask-dashboard) v1.0.6
|
||||
- Freeze used versions in `requirements.txt`
|
||||
- jinja2 = 2.11.3
|
||||
|
||||
## [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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# [Black Dashboard Flask](https://www.creative-tim.com/product/black-dashboard-flask) [](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)
|
||||
|
||||
 [](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aopen+is%3Aissue) [](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aissue+is%3Aclosed) [](https://gitter.im/creative-tim-general/Lobby) [](https://discord.gg/E4aHAQy)
|
||||
 [](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aopen+is%3Aissue) [](https://github.com/creativetimofficial/black-dashboard-flask/issues?q=is%3Aissue+is%3Aclosed) [](https://gitter.im/creative-tim-general/Lobby) [](https://discord.gg/E4aHAQy)
|
||||
|
||||

|
||||
|
||||
@ -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.3",
|
||||
"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": {}
|
||||
}
|
||||
@ -1,8 +1,10 @@
|
||||
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
|
||||
jinja2==2.11.3
|
||||
|
||||
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