---
# GENERATED FILE — do not edit.
# Source: `manage.py docs_generate` (djust 1.2.0).
# Edit the generator in docs_app/generator.py instead.
title: "Class attributes"
description: "Class attributes on the LiveView base class, generated."
level: reference
order: 50
section: reference
generated: true
---
Class attributes on `LiveView`, generated from the framework manifest.

**8 entries.**

## `login_required`

**Type:** `Optional[bool]`

Require authenticated user. Set to True to protect, False to acknowledge public.

## `login_url`

**Type:** `Optional[str]`

Override settings.LOGIN_URL for this view's auth redirect

## `permission_required`

**Type:** `Optional[Union[str, List[str]]]`

Django permission string(s) required to access this view

## `template`

**Type:** `Optional[str]`

Inline template string (alternative to template_name)

**Example**

```python
template = "<div>{{ count }}</div>"
```

## `template_name`

**Type:** `Optional[str]`

Path to Django template file

**Example**

```python
template_name = 'myapp/counter.html'
```

## `temporary_assigns`

**Type:** `Dict[str, Any]`

Assigns to clear from server memory after each render. Values are the reset defaults. Use with dj-update='append' in template.

**Default:** `{}`

**Example**

```python
temporary_assigns = {'messages': [], 'feed_items': []}
```

## `tick_interval`

**Type:** `Optional[int]`

Periodic tick interval in milliseconds (e.g., 2000 for 2s polling)

## `use_actors`

**Type:** `bool`

Enable Tokio actor-based state management for high-concurrency views

**Default:** `False`

## Configure a view

```python
from djust import LiveView

class DashboardView(LiveView):
    template_name = "myapp/dashboard.html"
    login_required = True
    permission_required = "myapp.view_report"
```

Declare configuration on the class; initialize per-view state in `mount()`.
See [Authorization](/guides/authorization/) for access control and
[LiveView API](/api-reference/liveview/) for the broader view contract.
