diff --git a/.env b/.env index 1eaaa24..b9601f0 100644 --- a/.env +++ b/.env @@ -3,7 +3,7 @@ DEBUG=False # Flask ENV FLASK_APP=run.py -FLASK_ENV=development +FLASK_DEBUG=True # If not provided, a random one is generated # SECRET_KEY= diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cfc843..f88c1f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## [1.0.16] 2024-10-28 +### Changes + +- `SECRET_KEY`: remove the random string if not found +- Update Versions +- Fix for Python 13 + ## [1.0.15] 2024-05-18 ### Changes diff --git a/README.md b/README.md index 0ea3f1e..3496cca 100644 --- a/README.md +++ b/README.md @@ -5,27 +5,6 @@ - 👉 [Flask Pixel Lite](https://appseed.us/product/pixel-bootstrap/flask/) - product page - 👉 [Flask Pixel Lite](https://flask-pixel-lite.appseed-srv1.com/) - LIVE Deployment -
- -## Features - -> `Have questions?` Contact **[Support](https://appseed.us/support/)** (Email & Discord) provided by **AppSeed** - -| Free Version | [PRO Version](https://appseed.us/product/pixel-bootstrap-pro/flask/) | [Custom Development](https://appseed.us/custom-development/) | -| --------------------------------------| --------------------------------------| --------------------------------------| -| ✓ **Up-to-date dependencies** | **Everything in Free**, plus: | **Everything in PRO**, plus: | -| ✓ Best Practices | ✅ **Premium Bootstrap 5 Design** | ✅ **1 Week** `Custom Development` | -| ✓ DB: SQLite, MySql | ✅ `Auth` Provided by **Flask-Security-Too** | ✅ **Dedicated Developer** | -| ✓ DB Tools: ORM, Flask-Migrate | ✅ `Extended User Model` | ✅ Weekly Sprints | -| ✓ Session-Based authentication | ✅ `Users Roles` | ✅ Technical SPECS | -| ✓ `Docker` | ✅ `Private REPO Access` | ✅ Documentation | -| ✓ `CI/CD` Flow via Render | ✅ **PRO Support** - [Email & Discord](https://appseed.us/support/) | ✅ **30 days Delivery Warranty** | -| ✓ `Free Support` | - | ✅ [CI/CD for AWS, DO](https://appseed.us/terms/#section-ci-cd) **(Extra)** | -| --------------------------------- | --------------------------------- | --------------------------------- | -| ✓ [LIVE Demo](https://flask-pixel-lite.appseed-srv1.com/) | 🚀 [LIVE Demo](https://flask-pixel-enhanced.onrender.com/) `PRO` | **[Get in Touch ➡️](https://appseed.us/custom-development/)** | - -![Pixel Bootstrap Lite - Full-Stack Starter generated by AppSeed.](https://user-images.githubusercontent.com/51070104/168753915-d61b2f97-57b2-4d14-a774-d217d120ff62.png) -
## Start with `Docker` @@ -76,7 +55,7 @@ $ pip3 install -r requirements.txt ```bash $ export FLASK_APP=run.py -$ export FLASK_ENV=development +$ export FLASK_DEBUG=True ```
@@ -108,11 +87,11 @@ $ pip3 install -r requirements.txt ```bash $ # CMD $ set FLASK_APP=run.py -$ set FLASK_ENV=development +$ set FLASK_DEBUG=True $ $ # Powershell $ $env:FLASK_APP = ".\run.py" -$ $env:FLASK_ENV = "development" +$ $env:FLASK_DEBUG = "True" ```
@@ -225,4 +204,4 @@ The project is coded using blueprints, app factory pattern, dual configuration p
--- -[Flask Pixel Lite](https://appseed.us/product/pixel-bootstrap/flask/) - Open-source starter generated by **[App Generator](https://appseed.us/generator/)**. +[Flask Pixel Lite](https://appseed.us/product/pixel-bootstrap/flask/) - Open-source Flask Starter provided by **[App Generator](https://app-generator.dev/)**. diff --git a/apps/config.py b/apps/config.py index 5936e8d..ecab239 100644 --- a/apps/config.py +++ b/apps/config.py @@ -13,9 +13,7 @@ class Config(object): ASSETS_ROOT = os.getenv('ASSETS_ROOT', '/static/assets') # Set up the App SECRET_KEY - SECRET_KEY = os.getenv('SECRET_KEY', None) - if not SECRET_KEY: - SECRET_KEY = ''.join(random.choice( string.ascii_lowercase ) for i in range( 32 )) + SECRET_KEY = os.getenv('SECRET_KEY', 'Secr3t_55xA') SQLALCHEMY_TRACK_MODIFICATIONS = False diff --git a/deployer.json b/deployer.json deleted file mode 100644 index 855bd27..0000000 --- a/deployer.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "flask-pixel", - "type": "flask" -} diff --git a/log.json b/log.json deleted file mode 100644 index 5d65a24..0000000 --- a/log.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "backend": "flask", - "db_name": "", - "db_pass": "", - "db_type": "mysql", - "db_user": "", - "dbms": "1", - "description": "generated product", - "design": "pixel-bootstrap", - "docker": "1", - "err_code": 0, - "frontend": "", - "heroku": "0", - "pattern": "mvc", - "pro": "0", - "task_id": "09d61b97-02ba-42f1-ae0f-554ba0dae4f8", - "task_info": "Task is finished", - "task_output": "09d61b97-02ba-42f1-ae0f-554ba0dae4f8.zip", - "task_result": "SUCCESS", - "task_state": "FINISHED", - "task_ts_end": "2022-05-31-08-13-21", - "task_ts_start": "2022-05-31-08-11-10" -} \ No newline at end of file diff --git a/package.json b/package.json deleted file mode 100644 index eac2b45..0000000 --- a/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "boilerplate-code-flask-dashboard", - "mastertemplate": "boilerplate-code-flask-dashboard", - "version": "2stable.0.1", - "description": "Template project - Flask Boilerplate Code", - "repository": { - "type": "git", - "url": "https://github.com/app-generator/boilerplate-code-flask-dashboard" - }, - "bugs": { - "url": "https://github.com/app-generator/boilerplate-code-flask-dashboard/issues", - "email": "support@appseed.us" - }, - "author": "AppSeed App Generator (https://appseed.us)", - "engines": { - "node": ">=10.0.0" - }, - "dependencies": {}, - "devDependencies": {} -} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b52ad88..ae3aa69 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,17 +1,17 @@ -flask==2.0.2 -Werkzeug==2.0.3 -jinja2==3.0.2 -flask_login==0.5.0 -flask_migrate==3.1.0 -WTForms==3.0.0 -flask_wtf==1.0.0 -flask_sqlalchemy==2.5.1 -sqlalchemy==1.4.29 -email_validator==1.1.3 -gunicorn==20.1.0 -flask-restx==0.5.1 -python-dotenv==0.19.2 -Flask-Minify==0.37 +flask==2.2.5 +Werkzeug==3.0.4 +jinja2==3.1.4 +flask_login==0.6.3 +flask_migrate==4.0.7 +WTForms==3.1.2 +flask_wtf==1.2.1 +flask_sqlalchemy==3.1.1 +sqlalchemy==2.0.36 +email_validator==2.2.0 +gunicorn==23.0.0 +flask-restx==1.3.0 +python-dotenv==1.0.1 +Flask-Minify==0.48 # flask_mysqldb # psycopg2-binary