You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modern template for **Django** that covers `Admin Section`, all authentication pages (registration included) crafted on top of **[Gradient Able](https://appseed.us/product/gradient-able/django/)**,
4
-
an open-source `Bootstrap` design from [CodedThemes](https://bit.ly/37fF9RT).
3
+
Modern template for **Django Admin**, Auth Pages (registration included) crafted on top of **Gradient Able Dashboard**, an open-source **Bootstrap** design.
5
4
6
-
> Actively supported by [AppSeed](https://appseed.us/) via `Email` and `Discord`.
5
+
-[Django Admin Gradient Able](https://app-generator.dev/docs/products/django-libs/theme-gradient-able.html) - Documentation & Support Links
6
+
-[Django Gradient Able Dashboard](https://app-generator.dev/product/gradient-able/django/) - The product that uses the library
7
+
-[Getting Started with Django](https://app-generator.dev/docs/technologies/django/index.html) - Learn how to code **Django** Projects
@@ -20,160 +19,9 @@ an open-source `Bootstrap` design from [CodedThemes](https://bit.ly/37fF9RT).
20
19
21
20
<br />
22
21
23
-

> Add `admin_gradient` application to the `INSTALLED_APPS` setting of your Django project `settings.py` file (note it should be before `django.contrib.admin`):
51
-
52
-
```python
53
-
INSTALLED_APPS= (
54
-
...
55
-
'admin_gradient.apps.AdminGradientConfig',
56
-
'django.contrib.admin',
57
-
)
58
-
```
59
-
60
-
<br />
61
-
62
-
> Add `LOGIN_REDIRECT_URL` and `EMAIL_BACKEND` of your Django project `settings.py` file:
> Add `admin_gradient` urls in your Django Project `urls.py` file
73
-
74
-
```python
75
-
from django.urls import path, include
76
-
77
-
urlpatterns = [
78
-
...
79
-
path('', include('admin_gradient.urls')),
80
-
]
81
-
```
82
-
83
-
<br />
84
-
85
-
> **Collect static** if you are in `production environment`:
86
-
87
-
```bash
88
-
$ python manage.py collectstatic
89
-
```
90
-
91
-
<br />
92
-
93
-
> **Start the app**
94
-
95
-
```bash
96
-
$ # Set up the database
97
-
$ python manage.py makemigrations
98
-
$ python manage.py migrate
99
-
$
100
-
$ # Create the superuser
101
-
$ python manage.py createsuperuser
102
-
$
103
-
$ # Start the application (development mode)
104
-
$ python manage.py runserver # default port 8000
105
-
```
106
-
107
-
Access the `admin` section in the browser: `http://127.0.0.1:8000/`
108
-
109
-
<br />
110
-
111
-
## How to Customize
112
-
113
-
When a template file is loaded, `Django` scans all template directories starting from the ones defined by the user, and returns the first match or an error in case the template is not found.
114
-
The theme used to style this starter provides the following files:
When the project requires customization, we need to copy the original file that needs an update (from the virtual environment) and place it in the template folder using the same path.
144
-
145
-
For instance, if we want to customize the `index.html` these are the steps:
146
-
147
-
-`Step 1`: create the `templates` DIRECTORY inside your app
148
-
-`Step 2`: configure the project to use this new template directory
149
-
- Edit `settings.py` TEMPLATES section
150
-
-`Step 3`: copy the `footer.html` from the original location (inside your ENV) and save it to the `YOUR_APP/templates` DIR
> For more components, pages and priority on support, feel free to take a look at this **Django** starter:
164
-
165
-
Designed for those who like bold elements and beautiful websites, **[Gradient Able](https://appseed.us/product/gradient-able-pro/django/)** is the most stylish Admin Design compare to all other Bootstrap Templates.
166
-
It comes with high feature-rich pages and components with fully developer-centric code.

22
+

175
23
176
24
<br />
177
25
178
26
---
179
-
**[Django Admin Gradient](https://appseed.us/product/gradient-able/django/)** - Modern Admin Interface provided by **[AppSeed](https://appseed.us/)**
27
+
**[Django Gradient Able](https://app-generator.dev/docs/products/django-libs/theme-gradient-able.html)** - Modern Django Admin Interface provided by **[App-Generator](https://app-generator.dev)**
Copy file name to clipboardExpand all lines: admin_gradient/templates/admin/includes/fieldset.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@
7
7
{% for line in fieldset %}
8
8
<divclass="row">
9
9
<divclass="{% if line.fields.0 in 'last_login, date_joined' %}col-md-6{% else %}col-md-12{% endif %}">
10
-
<divclass="mb-4 {% if line.fields|length_is:'1' and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
11
-
{% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %}
10
+
<divclass="mb-4 {% if line.fields|length == 1 and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
11
+
{% if line.fields|length == 1 %}{{ line.errors }}{% endif %}
12
12
{% for field in line %}
13
-
{# <div{%ifnotline.fields|length_is:'1' %} class="fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}"{%eliffield.is_checkbox%}class="checkbox-row"{%endif%}>#}
13
+
{# <div{%ifnotline.fields|length == 1%}class="fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}"{%eliffield.is_checkbox%}class="checkbox-row"{%endif%}>#}
14
14
15
-
{% if not line.fields|length_is:'1' and not field.is_readonly %}
15
+
{% if not line.fields|length == 1 and not field.is_readonly %}
0 commit comments