Skip to content

Commit

Permalink
add sections to manual installation
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakJariwala committed Feb 5, 2025
1 parent 578c840 commit 3fbeee4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/guide/server-side-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ You're all set! You can now start your development server.
Skip this section if you used the [template based setup](#template-based-setup) method.
:::

### Install dependencies

Install the `inertia-django` server-side adapter and related dependencies.

::: code-group
Expand All @@ -81,6 +83,8 @@ python -m pip install inertia-django django-vite
```
:::

### Update installed apps

Add `django_vite` and `inertia` to your `INSTALLED_APPS` in `settings.py`.

```python
Expand All @@ -91,6 +95,8 @@ INSTALLED_APPS = [
]
```

### Update middleware

Next, add `inertia.middleware.InertiaMiddleware` to your `MIDDLEWARE` in `settings.py`.

```python
Expand All @@ -100,6 +106,8 @@ MIDDLEWARE = [
]
```

### Configure settings

Configure `django-vite` and `inertia-django` specific settings in `settings.py`.

```python
Expand Down Expand Up @@ -130,6 +138,8 @@ INERTIA_LAYOUT = "base.html" # update with your base template name

> For a complete list of available `inertia-django` settings, see [readme](https://github.com/inertiajs/inertia-django?tab=readme-ov-file#settings).
### Update base template

In your base html template, add the following:

```html
Expand Down

0 comments on commit 3fbeee4

Please sign in to comment.