Skip to main content

Sign in

Sign in (dark theme)
Sign in (light theme)

Drag the divider or use the arrow keys to compare themes.

Sign in
Sign in (dark theme)
Sign in (light theme)

Drag the divider or use the arrow keys to compare themes.

  1. The standard username and password form uses the Chassis login template.
  2. Remember me controls how the login session is retained.
Sign in

Django Chassis 1.0.23 · training site with Russian UI

  1. The standard username and password form uses the Chassis login template.
  2. Remember me controls how the login session is retained.

How to add it​

Install Chassis 1.0.23 and put 'django_chassis' before 'django.contrib.admin' in INSTALLED_APPS. With the standard Django auth and session middleware, add the following to src/apps/admins/site.py and mount the instance in your root URLconf (demo_urls.py in the demo). The enabled users module supplies the login form and its Remember me control.

# src/apps/admins/site.py
from django.contrib.admin import AdminSite
from django_chassis.mixins import ChassisAdminSiteMixin


class PlatformAdminSite(ChassisAdminSiteMixin, AdminSite):
include_users_module = True


admin_site = PlatformAdminSite(name='admin')
# demo_urls.py
from django.urls import path

from apps.admins.site import admin_site

urlpatterns = [path('admin/', admin_site.urls)]

Run migrations and open /admin/login/. On the local demo, sign in as demo-admin with the password generated in .demo/credentials.txt by ./bootstrap.sh.