Skip to main content

Django wraper over Driver.js

Project description

django-driverjs is a wrapper for the [Driver.js](https://github.com/kamranahmedse/driver.js) library.

Installation

Run pip install django-driverjs. Once this step is complete add "driverjs" to your INSTALLED_APPS setting in your settings.py file and run python manage.py migrate to update your database.

Usage

#1 On the django admin panel create a driver and its steps.

#2 Include the static files (provided):

<script src="{%static 'Driverjs/js/driver.min.js'%}"></script>

<link rel="stylesheet" href="{%static 'Driverjs/css/driver.min.css'%}">

#3 Load the tag and render the javascript: {% load driverjs %}

{%setup_driver 'your_driver_slug' %}

#4 Choose a place to start it with: [your_driver_slug]_driver.start(); So if your driver’s slug is new_features, a new variable will be declared: new_features_driver

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

django-driverjs-0.1.4.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

django_driverjs-0.1.4-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file django-driverjs-0.1.4.tar.gz.

File metadata

  • Download URL: django-driverjs-0.1.4.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for django-driverjs-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2c7435810109ceb7e9bda0068bc5bb54078a12ee566a885ab79ae529abf08371
MD5 f7cf6b42fe5a97cf0e22854c2127ce5f
BLAKE2b-256 16706f54b8180de0a22a99b719a03b78f1e371436a432642cf5ccf84863dee6d

See more details on using hashes here.

File details

Details for the file django_driverjs-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_driverjs-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 56839fb869489a342cf302fb31459d73a6051a91c7b286591cb2b4dcd4b17219
MD5 cf00debebf7aa37f2e790202f32f7cbf
BLAKE2b-256 d09a09039f08408b1e156985ae8614e19b30b27b06b0fcaf2022d72ae8ab14fd

See more details on using hashes here.

Supported by

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