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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfd8a257b19aea9cccf6b9141c20bc4c635aa07b18b4c179868fe4974a6f0466 |
|
MD5 | 70244251ea5a5d90f2c7686b061c5b47 |
|
BLAKE2b-256 | dfa501e7ac512621af6dfe9d44c69c410039a3787e0f6d428424acf91f649e1b |