From 680e36ce76fb60c97401a9fe56c8b4704eb9677b Mon Sep 17 00:00:00 2001 From: App Generator <51070104+app-generator@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:47:53 +0200 Subject: [PATCH] Release v1.0.15 --- CHANGELOG.md | 14 ++++++++++++++ README.md | 22 +++++++++++++--------- core/settings.py | 8 +++++--- requirements.txt | 8 ++++---- 4 files changed, 36 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60efea78..5672db91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## [1.0.15] 2024-03-02 +### Changes + +- Deprecate `distutils` + - use `str2bool` +- Update Deps + - `requirements.txt` +- Update README: [PRO Version](https://appseed.us/product/black-dashboard-pro/django/), List features + - `API`, **Charts** + - **DataTables** (Filters, Export) + - **Celery** + - **Media Files Manager** + - **Extended User Profiles** + ## [1.0.14] 2023-02-14 ### Changes diff --git a/README.md b/README.md index b4daa117..2e81942b 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,19 @@ The product is designed to deliver the best possible user experience with highly | Free Version | [PRO Version](https://appseed.us/product/black-dashboard-pro/django/) | [Custom Development](https://appseed.us/custom-development/) | | --------------------------------------| --------------------------------------| --------------------------------------| -| ✓ **Django 4.1.12** | **Everything in Free**, plus: | **Everything in PRO**, plus: | -| ✓ Best Practices | ✅ **Premium Bootstrap Design** | ✅ **1mo Custom Development** | -| ✓ Bootstrap Design | ✅ `Private REPO Access` | ✅ **Team**: PM, Developer, Tester | -| ✓ `Docker` | ✅ **PRO Support** - [Email & Discord](https://appseed.us/support/) | ✅ Weekly Sprints | -| ✓ `CI/CD` Flow via Render | ✅ Deployment Assistance | ✅ Technical SPECS | -| ✓ `Free Support | - | ✅ Documentation | -| - | - | ✅ **30 days Delivery Warranty** | -| ------------------------------------ | ------------------------------------ | ------------------------------------| -| ✓ [LIVE Demo](https://django-black-dashboard.appseed-srv1.com/) | 🚀 [LIVE Demo](https://django-black-dashboard-pro.appseed-srv1.com/) | 🛒 `Order`: **[$4,999](https://appseed.gumroad.com/l/rocket-package)** (GUMROAD) | +| ✓ **Django 4.2.9** | **Everything in Free**, plus: | **Everything in PRO**, plus: | +| ✓ Best Practices | ✅ **Premium Bootstrap 5 Design** | ✅ **1mo Custom Development** | +| ✓ Bootstrap 5, `Material` Design | ✅ `OAuth` Google, GitHub | ✅ **Team**: PM, Developer, Tester | +| ✓ `CI/CD` Flow via Render | ✅ `API`, **[Charts](https://django-black-pro.onrender.com/charts/)** | ✅ Weekly Sprints | +| ✓ `Docker` | ✅ **[DataTables](https://django-black-pro.onrender.com/tables/)** (Filters, Export) | ✅ Technical SPECS | +| - |✅ **Celery** | ✅ Documentation | +| - | ✅ **Media Files Manager** | ✅ **30 days Delivery Warranty** | +| - | ✅ **Extended User Profiles** | - | +| - | ✅ `Private REPO Access` | - | +| - | ✅ **PRO Support** - [Email & Discord](https://appseed.us/support/) | - | +| - | ✅ Deployment Assistance | - | +| ------------------------------------ | ------------------------------------ | ------------------------------------| +| ✓ [LIVE Demo](https://django-material-dash2.onrender.com) | 🚀 [LIVE Demo](https://django-black-pro.onrender.com/) | 🛒 `Order`: **[$4,999](https://appseed.gumroad.com/l/rocket-package)** (GUMROAD) | ![Django Admin Black - Template project for Django provided by AppSeed.](https://user-images.githubusercontent.com/51070104/196730732-dda1794b-93ce-48cb-bc5c-182411495512.png) diff --git a/core/settings.py b/core/settings.py index fc55eebe..eab50cf5 100644 --- a/core/settings.py +++ b/core/settings.py @@ -13,6 +13,7 @@ import os, random, string from pathlib import Path from dotenv import load_dotenv +from str2bool import str2bool load_dotenv() # take environment variables from .env. @@ -27,11 +28,12 @@ if not SECRET_KEY: SECRET_KEY = ''.join(random.choice( string.ascii_lowercase ) for i in range( 32 )) -# Render Deployment Code -DEBUG = 'RENDER' not in os.environ +# Enable/Disable DEBUG Mode +DEBUG = str2bool(os.environ.get('DEBUG')) +#print(' DEBUG -> ' + str(DEBUG) ) # Docker HOST -ALLOWED_HOSTS = ['localhost', '127.0.0.1'] +ALLOWED_HOSTS = ['*'] # Add here your deployment HOSTS CSRF_TRUSTED_ORIGINS = ['http://localhost:8000', 'http://localhost:5085', 'http://127.0.0.1:8000', 'http://127.0.0.1:5085'] diff --git a/requirements.txt b/requirements.txt index 6fc3788d..afa17d9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,14 @@ # Core -django==4.1.12 -python-dotenv==1.0.0 +django==4.2.9 +python-dotenv==1.0.1 +str2bool==1.1 # UI django-admin-black==1.0.8 # Deployment -whitenoise==6.5.0 +whitenoise==6.6.0 gunicorn==21.2.0 -# DB Layer # psycopg2-binary # mysqlclient