Skip to main content

在您的网站上显示每日提示卡。

项目描述

https://badge.fury.io/py/django-tips.png https://travis-ci.org/trojsten/django-tips.png?branch=master

在您的网站上显示每日提示卡。

快速开始

安装 django 提示:

pip install django-tips

然后在项目中使用它:

import tips

要求

  • django

  • djangorest框架

  • 降价

推荐包

  • django-sekizai

构建前端

从tips_frontend 目录运行:

npm run dev

或生产构建:

npm run build

用法

您要显示提示的地方:

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

如果您启用了 csrf 保护,请包括 csrf-token ajax 设置脚本(您可以在示例中找到该脚本):

<script src="{% static "js/csrf_token.js" %}"></script>

发展

pip install poetry
poetry install
cd example
./manage.py migrate
./manage.py loaddata fixtures/initial_data.json
./manage.py createsuperuser
./manage.py runserver

学分

用于渲染此包的工具:

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

django-tips-0.8.2.tar.gz (569.9 kB 查看哈希)

已上传 source

内置分布

django_tips-0.8.2-py3-none-any.whl (574.9 kB 查看哈希)

已上传 py3