django-tctip
一个 Django 应用,用来在页面显示打赏弹框,效果可看我博客 https://tendcode.com/
step 1 安裝包
pip install django-tctip
step 2 配置中添加应用
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_tctip',
]
step 3 生成数据表
python manage.py makemigrations
python manage.py migrate
step 4 在需要展示的页面添加引入标签函数{% load tctip_tags %},并添加标签函数{% load_tctip %}到html中,建议放在head标签末尾
{% load tctip_tags %}
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="referrer" content="origin">
<title>Title</title>
{% load_tctip %}
</head>
<body>
<div>django-tctip demo test !!!</div>
</body>
</html>
step 5 前往管理界面添加数据即可显示到前台(参数都是可以通过后台配置的,参数的作用可以查看前台注释中描述,比较简单故不做说明)
说明:django-tctip 是将tctip项目封装成了django的应用,感谢原项目 https://github.com/greedying/tctip 作者和删减版 https://github.com/HaddyYang/tctip 作者
Metadata
Release files for django-tctip 1.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-tctip-1.4.7.tar.gz | 24.7 kB | Without provenance | Details for django-tctip-1.4.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_tctip-1.4.7-py3-none-any.whl | Python 3 | none | any | Details for django_tctip-1.4.7-py3-none-any.whl |
Total release size: 57.8 kB
Release files / django-tctip-1.4.7.tar.gz
| Download URL | django-tctip-1.4.7.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90996d9ac8514a8909ea20f09382b5f7d5f670fab184d9dc79b4d51d07c6aa12
|
|
BLAKE2b-256 checksum How to use checksums |
c0ab61ebf2d96ef408f2f6d9ca0e277991e3f3bfbf426d86d9695235535b3e52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / django_tctip-1.4.7-py3-none-any.whl
| Download URL | django_tctip-1.4.7-py3-none-any.whl |
|---|---|
| Size | 33.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06782fdb40764d9cd39a8df3f54141608729af969fc9de6424c777c3a46e25db
|
|
BLAKE2b-256 checksum How to use checksums |
d1182f5a4a3bc72b35ca8274f8fd8a201dfb4608cafa3130c168e2956aaf6da4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for django-tctip 1.4.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.