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

Building frontend

From tips_frontend directory run:

npm run_script watch

or:

npm run_script build

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

Uploaded Source

Built Distribution

django_tips-0.5.0-py2.py3-none-any.whl (12.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for django-tips-0.5.0.tar.gz
Algorithm Hash digest
SHA256 53169ee8c31a92f8e01d101c7151ba7180eb53c6946678b75cc272e82debfd3f
MD5 7355d428469b6f442f7bfc9853bf412a
BLAKE2b-256 1a028254aabc4067c814d9bfb6eccc85205efb5f33e471d1f57fe56d210b37c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_tips-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40d3a6435ebfc5d615c4cbca45a511fce26f07bf4fcfbcb940a95397073a6165
MD5 e7b7dfc96d31a37cec8f8d3fa51892da
BLAKE2b-256 2ae022579fee310031fee3eb6c879e4387326910aab11d24b8a1a0d83511e9d0

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