Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inertia_django-0.2.1-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file inertia-django-0.2.1.tar.gz.

File metadata

  • Download URL: inertia-django-0.2.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.17

File hashes

Hashes for inertia-django-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4373e217b8c074caa09ddc7c1ade66105bd153a9459c5356304cc885654c7f54
MD5 92ca5c0e769fd1eb0fc930ddee6462cc
BLAKE2b-256 d9d3a8f9db64adfb40887f3e80937c69861fd220e25d354d5154c39dae4cb089

See more details on using hashes here.

File details

Details for the file inertia_django-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: inertia_django-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.17

File hashes

Hashes for inertia_django-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a017b257b9047b05b42664389b974cc54bd982d88de1c9cf79616f9fbd1e5571
MD5 c116e7d19c45f7627f2256991da350b3
BLAKE2b-256 7d058743e0f1e1fcd33d066fc6d1df3833e1dafee179db067d948351089db911

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page