Skip to main content

Djavue

Build codecov
Djavue is a Django app that allows the usage of Vue files as Django Templates. It's meant to be an alternative to Django Templates for developers that want to use Vue as frontend inside Django, without needing to setup npm or webpack.

Installation

  1. Install django-djavue from pip
pip install django-djavue
  1. Add djavue to your INSTALLED APPS
INSTALLED_APPS = [
  ...,
  'djavue',
  ...
]

Quickstart

  1. Create a .vue file inside your templates folder.

  2. Write a view that loads the template

from djavue import get_vue_template

def index(request):
    template = get_vue_template('index.vue', title="Homepage")

    return template.render({"""context here"""})

Links:

Tutorial
Pypi
Github

Release files for django-djavue 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-djavue 0.3
File Size Uploaded
django-djavue-0.3.tar.gz 9.3 kB Details

Release files / django-djavue-0.3.tar.gz

Download URL django-djavue-0.3.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
efb03a120738631bb5f47dbf7fdfc5290c461eab83b202c101bae9759ecc3de8
BLAKE2b-256 checksum
How to use checksums
b02741ca569e9a470d4364f2b70fd72dabbc1ddc32a00d116f7ad2b27dd427d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page