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
  • djangorestframework
  • markdown

Recommanded packages

  • django-sekizai

Building frontend

From tips_frontend directory run:

npm run dev

or production build:

npm run build

Usage

place where you want to show tips:

{% include "tips/tips.html" %}

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>

Development

pip install -e .
pip install -r requirements_dev.txt
cd example
./manage.py migrate
./manage.py loaddata fixtures/initial_data.json
./manage.py createsuperuser
./manage.py runserver

Credits

Tools used in rendering this package:

History

0.1.0 (2016-06-10)

  • First release on PyPI.

Project details


Release history Release notifications

This version
History Node

0.7.0

History Node

0.6.0

History Node

0.5.0

History Node

0.4.0

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-tips-0.7.0.tar.gz (560.3 kB) Copy SHA256 hash SHA256 Source None Apr 23, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page