Show tip of the day cards on your site.
Project description
Show tip of the day cards on your site.
Quickstart
Install django-tips:
pip install django-tips
Then use it in a project:
import tips
Requirements
django > 1.8
react
djangorestframework
markdown
Recommanded packages
django-sekizai
Usage
place where you want to show tips:
{% include "tips/tips.html" %}
include in your base template on appropriate places:
{% render_block "css" %} <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.min.js" type="text/javascript"></script> {% render_block "js" %}
include csrf-token ajax setup script if you have csrf protection enabled (you can find the script in the example):
<script src="{% static "js/csrf_token.js" %}"></script>
Credits
Tools used in rendering this package:
History
0.1.0 (2016-06-10)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-tips-0.2.0.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for django_tips-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51847fbb44d3e16dd71220e14a6331acaeb3ef55bb2ab4d5411413d4ea87394b |
|
MD5 | b4f33ba24adea1e37c6cbe0614ba1fa9 |
|
BLAKE2b-256 | 29c4c9a72bc3ae6ff7a15fee3b3f78d09b63dfe7e101e9f14847d4690d04f313 |