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

  • 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 poetry
poetry install
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:

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

Uploaded Source

Built Distribution

django_tips-0.8.2-py3-none-any.whl (574.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-tips-0.8.2.tar.gz
  • Upload date:
  • Size: 569.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.9 Linux/5.3.7-arch1-1-ARCH

File hashes

Hashes for django-tips-0.8.2.tar.gz
Algorithm Hash digest
SHA256 cda91a6652768034185f76bef578621153d462bcb4530216d27397c2960beb76
MD5 9222246f5afa17a1a7420aeaaac1590c
BLAKE2b-256 59b07cf62123e1065b1b386c4fc09f3a9ac61192b90e7fcdb84cb8f77284d66d

See more details on using hashes here.

File details

Details for the file django_tips-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: django_tips-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 574.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.9 Linux/5.3.7-arch1-1-ARCH

File hashes

Hashes for django_tips-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2fbbcf72777d001f4f86ba053ba512a3660749d3894e874767e4b02599779d25
MD5 c2eccde2c0306961c837d4a56f7b36f0
BLAKE2b-256 09195a6ef1aff3f760fddb5c2a2a7fb588f9774c731f56f94bdd034a72fe5065

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