django-tips 0.8.2

Creator: codyrutscher

Last updated:

Add to Cart

Description:

djangotips 0.8.2

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:

Cookiecutter
cookiecutter-djangopackage

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.