inertia connector for django
Project description
inertia-django conector.
Based on inertia-laravel.
Check https://github.com/zodman/django-inertia-demo for example how to use
Usage
render_inertia
function
The easiest way to render a Vue component with inertia-django is to use the render_inertia
function. *
Note:* You have to have an Index.vue
component in your project.
from inertia import render_inertia
def index(request):
# for function views just use the render_inertia function
return render_inertia(request, 'Index', props={'title': 'My inertia-django page'}, template_name='index.html')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inertia-django-0.2.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for inertia_django-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a017b257b9047b05b42664389b974cc54bd982d88de1c9cf79616f9fbd1e5571 |
|
MD5 | c116e7d19c45f7627f2256991da350b3 |
|
BLAKE2b-256 | 7d058743e0f1e1fcd33d066fc6d1df3833e1dafee179db067d948351089db911 |