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
Built Distribution
Hashes for django_driverjs-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56839fb869489a342cf302fb31459d73a6051a91c7b286591cb2b4dcd4b17219 |
|
MD5 | cf00debebf7aa37f2e790202f32f7cbf |
|
BLAKE2b-256 | d09a09039f08408b1e156985ae8614e19b30b27b06b0fcaf2022d72ae8ab14fd |