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 **[Star Admin](https://appseed.us/product/star-admin/django/)**, an open-source `Bootstrap 5`design from [BootstrapDash](https://www.bootstrapdash.com/product/star-admin-free?ref=23).
3
+
Modern template for **[DjangoAdmin](https://app-generator.dev/docs/products/django-libs/theme-star-admin.html)**, Auth Pages (registration included) crafted on top of **StarAdmin**, an open-source **Bootstrap**design.
4
4
5
-
> Actively supported by [AppSeed](https://appseed.us/) via `Email` and `Discord`.
5
+
-[Django StarAdmin](https://app-generator.dev/docs/products/django-libs/theme-star-admin.html) - **Documentation** & Support Links
6
+
-[Getting Started with Django](https://app-generator.dev/docs/technologies/django/index.html) - Learn how to code **Django** Projects
@@ -19,166 +18,9 @@ Modern template for **Django** that covers `Admin Section`, all authentication p
19
18
20
19
<br />
21
20
22
-

23
-
24
-
<br />
25
-
26
-
## Why `Django Admin Star`
27
-
28
-
- Modern [Bootstrap 5](https://www.admin-dashboards.com/bootstrap-5-templates/) Design
29
-
-`Responsive Interface`
30
-
-`Minimal Template` overriding
31
-
-`Easy integration`
32
-
33
-
**Star Admin** is a free admin dashboard template built with **[Bootstrap 5](https://www.admin-dashboards.com/bootstrap-5-templates/)**. We took the original `Star Admin` and gave it a design overhaul along with newly written code to create our best template yet. This is a modern-looking dashboard with a clean and elegant design.
> Add `admin_star` application to the `INSTALLED_APPS` setting of your Django project `settings.py` file (note it should be before `django.contrib.admin`):
52
-
53
-
```python
54
-
INSTALLED_APPS= (
55
-
...
56
-
'admin_star.apps.AdminStarConfig',
57
-
'django.contrib.admin',
58
-
)
59
-
```
60
-
61
-
<br />
62
-
63
-
> Add `LOGIN_REDIRECT_URL` and `EMAIL_BACKEND` of your Django project `settings.py` file:
> Add `admin_star` urls in your Django Project `urls.py` file
74
-
75
-
```python
76
-
from django.urls import path, include
77
-
78
-
urlpatterns = [
79
-
...
80
-
path('', include('admin_star.urls')),
81
-
]
82
-
```
83
-
84
-
<br />
85
-
86
-
> **Collect static** if you are in `production environment`:
87
-
88
-
```bash
89
-
$ python manage.py collectstatic
90
-
```
91
-
92
-
<br />
93
-
94
-
> **Start the app**
95
-
96
-
```bash
97
-
$ # Set up the database
98
-
$ python manage.py makemigrations
99
-
$ python manage.py migrate
100
-
$
101
-
$ # Create the superuser
102
-
$ python manage.py createsuperuser
103
-
$
104
-
$ # Start the application (development mode)
105
-
$ python manage.py runserver # default port 8000
106
-
```
107
-
108
-
Access the `admin` section in the browser: `http://127.0.0.1:8000/`
109
-
110
-
<br />
111
-
112
-
## How to Customize
113
-
114
-
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.
115
-
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.
145
-
146
-
For instance, if we want to customize the `footer.html` these are the steps:
147
-
148
-
-`Step 1`: create the `templates` DIRECTORY inside your app
149
-
-`Step 2`: configure the project to use this new template directory
150
-
- Edit `settings.py` TEMPLATES section
151
-
-`Step 3`: copy the `footer.html` from the original location (inside your ENV) and save it to the `YOUR_APP/templates` DIR
This design is a pixel-perfect [Bootstrap 5](https://www.admin-dashboards.com/bootstrap-5-templates/) Dashboard with a fresh, new design. Argon is a completly new product built on our newest re-built from scratch framework structure that is meant to make our products more intuitive, more adaptive and, needless to say, so much easier to customize.

21
+

180
22
181
23
<br />
182
24
183
25
---
184
-
**[Django Admin Star](https://appseed.us/product/star-admin/django/)** - Modern Admin Interface provided by **[AppSeed](https://appseed.us/)**
26
+
**[Django StarAdmin](https://app-generator.dev/docs/products/django-libs/theme-star-admin.html)** - Modern Django Admin Interface provided by **[App-Generator](https://app-generator.dev)**
Copy file name to clipboardExpand all lines: admin_star/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