Skip to main content

Show tip of the day cards on your site.

Project description

https://badge.fury.io/py/django-tips.png https://travis-ci.org/trojsten/django-tips.png?branch=master

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


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.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

django_tips-0.2.1-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-tips-0.2.1.tar.gz.

File metadata

  • Download URL: django-tips-0.2.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-tips-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d02fbc42744e533ffd8ee8b5a6f21b1a5033a029bdfe9b5e0bc3c1d5908d2206
MD5 d96ec9a91ea92e8380b9588d1208f0b3
BLAKE2b-256 9cac24cd759524d8254ad1ccc6feca04e243255cae97fbf2c837999c8402b4df

See more details on using hashes here.

File details

Details for the file django_tips-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_tips-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a86dd096ff6a50c301c5699aeb50ec8564e97a1b27fd5fda4b4de1d00e67cd0d
MD5 cdc7d1cfc538c65a25bff80ccbc7bd19
BLAKE2b-256 b524b4edf914a706dbbd47f7c65194c6b58c3f3ef9fa808a42937475a9b477fc

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