Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for django-tips, version 0.8.2
Filename, size File type Python version Upload date Hashes
Filename, size django_tips-0.8.2-py3-none-any.whl (574.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-tips-0.8.2.tar.gz (569.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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