Compare commits
9 Commits
gh-pages
...
v1.0.2-rc1
| Author | SHA1 | Date | |
|---|---|---|---|
| 23633ad0f5 | |||
| 526ae88e2b | |||
| 37dd87d851 | |||
| 0436e2843b | |||
| 0f7fc0cd35 | |||
| fec08795e1 | |||
| 1fe990398a | |||
| 971b5c8b80 | |||
| 912fc7ab40 |
15
CHANGELOG.md
15
CHANGELOG.md
@ -1,5 +1,18 @@
|
|||||||
# Change Log
|
# 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
|
## [1.0.0] 2020-08-21
|
||||||
### Initial Release
|
### Initial Release
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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)
|
# [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:
|
> 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**
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
© <a target="_blank" rel="noopener noreferrer"
|
© <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>
|
||||||
|
|||||||
41
package.json
41
package.json
@ -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.2",
|
||||||
"description": "Template project - Flask Boilerplate Code",
|
"description": "Template project - Flask Boilerplate Code ",
|
||||||
"repository": {
|
"scripts": {},
|
||||||
"type": "git",
|
"repository": {
|
||||||
"url": "https://github.com/creativetimofficial/argon-dashboard-flask"
|
"type": "git",
|
||||||
},
|
"url": "https://github.com/creativetimofficial/black-dashboard-flask"
|
||||||
"bugs": {
|
},
|
||||||
"url": "https://github.com/creativetimofficial/argon-dashboard-flask/issues",
|
"bugs": {
|
||||||
"email": "support@appseed.us"
|
"url": "https://github.com/creativetimofficial/black-dashboard-flask/issues",
|
||||||
},
|
"email": "support@appseed.us"
|
||||||
"author": "AppSeed App Generator <support@appseed.us> (https://appseed.us)",
|
},
|
||||||
"engines": {
|
"author": "Creative-Tim / AppSeed.us",
|
||||||
"node": ">=10.0.0"
|
"engines": {
|
||||||
},
|
"node": ">=10.0.0"
|
||||||
"dependencies": {
|
},
|
||||||
},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@ -1,8 +1,9 @@
|
|||||||
flask
|
flask==1.1.2
|
||||||
flask_login
|
flask_login==0.5.0
|
||||||
flask_migrate
|
flask_migrate==2.7.0
|
||||||
flask_wtf
|
flask_wtf==0.14.3
|
||||||
flask_sqlalchemy==2.*
|
flask_sqlalchemy==2.4.4
|
||||||
email_validator
|
sqlalchemy==1.3.23
|
||||||
python-decouple
|
email_validator==1.1.2
|
||||||
gunicorn
|
python-decouple==3.4
|
||||||
|
gunicorn==20.0.4
|
||||||
|
|||||||
8
run.py
8
run.py
@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user