Skip to content

Commit

Permalink
Release v1.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Mar 4, 2024
1 parent 4e8e676 commit 506c664
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DEBUG=True

SECRET_KEY=<STRONG_KEY_HERE>
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env
/staticfiles/

#src
*.sqlite*
#*.sqlite*

.env
yarn.lock
#.env
node_modules
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

## [1.0.21] 2024-03-04
### Changes

- Deprecate `distutils`
- use `str2bool`
- Update Deps
- `requirements.txt`
- Update README: [PRO Version](https://appseed.us/product/argon-dashboard2-pro/django/), List features
- `API`, **Charts**
- **DataTables** (Filters, Export)
- **Celery**
- **Media Files Manager**
- **Extended User Profiles**

## [1.0.20] 2023-02-14
### Changes

Expand Down
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,21 @@ Designed for those who like bold elements and beautiful websites. Made of hundre

> `Have questions?` Contact **[Support](https://appseed.us/support/)** (Email & Discord) provided by **AppSeed**
| Free Version | [PRO Version](https://appseed.us/product/soft-ui-dashboard-pro/django/) | [Custom Development](https://appseed.us/custom-development/) |
| Free Version | [PRO Version](https://appseed.us/product/soft-ui-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 5`, Soft Dashboard UI |`OAuth` Google, GitHub |**Team**: PM, Developer, Tester |
|`Docker` |`Extended User Model` | ✅ Weekly Sprints |
|`CI/CD` Flow via Render |`Private REPO Access` | ✅ Technical SPECS |
|`Free Support` |**PRO Support** - [Email & Discord](https://appseed.us/support/) | ✅ Documentation |
| - | ✅ Deployment Assistance |**30 days Delivery Warranty** |
| ------------------------------------ | ------------------------------------ | ------------------------------------|
|[LIVE Demo](https://django-soft-dash.onrender.com/) | 🚀 [LIVE Demo](https://django-soft-dash-pro.onrender.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-soft-dash-pro.onrender.com/charts/)** | ✅ Weekly Sprints |
|`Docker` |**[DataTables](https://django-soft-dash-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-soft-dash.onrender.com) | 🚀 [LIVE Demo](https://django-soft-dash-pro.onrender.com/) | 🛒 `Order`: **[$4,999](https://appseed.gumroad.com/l/rocket-package)** (GUMROAD) |


![Django Admin Soft - Template project for Django provided by AppSeed.](https://user-images.githubusercontent.com/51070104/215729207-5cce250e-54da-4712-89a9-c1fd6b0a149e.png)
Expand Down
10 changes: 5 additions & 5 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -27,13 +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) )

# HOSTs List
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']

RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME')
Expand Down
Binary file added db.sqlite3
Binary file not shown.
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# 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-soft-dashboard==1.0.12

# Deployment
whitenoise==6.5.0
whitenoise==6.6.0
gunicorn==21.2.0

# psycopg2-binary
Expand Down
103 changes: 103 additions & 0 deletions templates/accounts/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{% extends 'layouts/base-fullscreen.html' %}
{% load i18n static admin_soft %}

{% block content %}

{% include 'includes/navigation-fullscreen.html' %}

<main class="main-content mt-0">
<section>
<div class="page-header min-vh-75">
<div class="container">
<div class="row">
<div class="col-xl-4 col-lg-5 col-md-6 d-flex flex-column mx-auto">
<div class="card card-plain mt-8">
<div class="card-header pb-0 text-left bg-transparent">
<h3 class="font-weight-bolder text-info text-gradient">
Sign IN
</h3>
<p class="mb-0">
{% if msg %}
<span class="text-danger">{{ msg | safe }}</span>
{% else %}
<span>USER: test / Pass12__</span>
<br />
<span>ADMIN: admin / Pass12__</span>
{% endif %}
</p>
</div>
<div class="card-body">
<form role="form" method="post" action="#">
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<span class="text-danger">{{ error }}</span>
{% endfor %}
{% endif %}
{% csrf_token %}
{% for field in form %}
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
<div class="mb-3">
{{field}}
</div>
{% endfor %}
<p class="">
<a href="{% url 'password_reset' %}" class="text-primary">Forgot password</a>
</p>

<div class="text-center">
<button type="submit" class="btn bg-gradient-info w-100 mt-1 mb-0">Sign in</button>
<p class="mt-4">
Don't have an account?
<a href="{% url 'register' %}" class="text-primary">Register</a>
</p>
</div>

</form>
</div>
</div>
</div>
<div class="col-md-6">
<div class="oblique position-absolute top-0 h-100 d-md-block d-none me-n8">
<div class="oblique-image bg-cover position-absolute fixed-top ms-auto h-100 z-index-0 ms-n6" style="background-image:url('{% static 'img/curved-images/curved6.jpg' %}')"></div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>

{% include 'includes/footer-fullscreen.html' %}

{% endblock content %}

{% block extrascript %}
<script type="application/javascript">
{% if form.username.errors %}
notification.danger("{{ form.username.errors }}", 'top', 'right');
{% endif %}
{% if form.password.errors %}
notification.danger("{{ form.password.errors }}", 'top', 'right');
{% endif %}

{% if user.is_authenticated %}
var msg = "You are authenticated as {{ username }}, but are not authorized to " +
"access this page.Would you like to login to a different account ?"
notification.warning(msg, 'top', 'right');
{% endif %}

{% if form.errors and not form.non_field_errors %}
{% if form.errors.items|length == 1 %}
notification.warning("{% trans "Please correct the error below." %}", 'top', 'right');
{% else %}
notification.warning("{% trans "Please correct the errors below." %}", 'top', 'right');
{% endif %}
{% endif %}

{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
notification.warning("{{ error|clean_text }}", 'top', 'right');
{% endfor %}
{% endif %}
</script>
{% endblock %}
6 changes: 3 additions & 3 deletions templates/includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ <h6 class="ps-4 ms-2 text-uppercase text-xs font-weight-bolder opacity-6">Accoun
</div>
<div class="docs-info">
<h6 class="text-white up mb-0">Need help?</h6>
<a href="https://docs.appseed.us/products/django-dashboards/soft-ui-dashboard/"
target="_blank" class="btn btn-white btn-sm w-100 mb-0">Read the DOCS</a>
<a href="https://appseed.us/support/"
target="_blank" class="btn btn-white btn-sm w-100 mb-0">Support</a>
</div>
</div>
</div>
<a target="_blank"
class="btn bg-gradient-primary mt-3 w-100"
href="https://appseed.us/support/">Support</a>
href="https://appseed.us/product/soft-ui-dashboard-pro/django/">PRO Version</a>
</div>
</aside>

0 comments on commit 506c664

Please sign in to comment.