pinmok-content 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pinmok_content-1.0.0/LICENSE +21 -0
- pinmok_content-1.0.0/PKG-INFO +206 -0
- pinmok_content-1.0.0/README.md +183 -0
- pinmok_content-1.0.0/pinmok/content/__init__.py +23 -0
- pinmok_content-1.0.0/pinmok/content/admin.py +295 -0
- pinmok_content-1.0.0/pinmok/content/api.py +229 -0
- pinmok_content-1.0.0/pinmok/content/apps.py +20 -0
- pinmok_content-1.0.0/pinmok/content/datasource.py +49 -0
- pinmok_content-1.0.0/pinmok/content/enums.py +74 -0
- pinmok_content-1.0.0/pinmok/content/menus.py +17 -0
- pinmok_content-1.0.0/pinmok/content/migrations/0001_initial.py +126 -0
- pinmok_content-1.0.0/pinmok/content/migrations/__init__.py +0 -0
- pinmok_content-1.0.0/pinmok/content/models.py +284 -0
- pinmok_content-1.0.0/pinmok/content/service/article.py +131 -0
- pinmok_content-1.0.0/pinmok/content/service/category.py +86 -0
- pinmok_content-1.0.0/pinmok/content/service/frontend.py +253 -0
- pinmok_content-1.0.0/pinmok/content/templatetags/__init__.py +12 -0
- pinmok_content-1.0.0/pinmok/content/templatetags/content_tags.py +269 -0
- pinmok_content-1.0.0/pinmok/content/test.py +290 -0
- pinmok_content-1.0.0/pinmok/content/urls.py +33 -0
- pinmok_content-1.0.0/pinmok/content/views.py +88 -0
- pinmok_content-1.0.0/pinmok_content.egg-info/PKG-INFO +206 -0
- pinmok_content-1.0.0/pinmok_content.egg-info/SOURCES.txt +26 -0
- pinmok_content-1.0.0/pinmok_content.egg-info/dependency_links.txt +1 -0
- pinmok_content-1.0.0/pinmok_content.egg-info/requires.txt +2 -0
- pinmok_content-1.0.0/pinmok_content.egg-info/top_level.txt +1 -0
- pinmok_content-1.0.0/pyproject.toml +38 -0
- pinmok_content-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 惠达浪
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pinmok-content
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Pinmok content module
|
|
5
|
+
Author-email: 惠达浪 <crazys@126.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Source, https://github.com/pinmok/pinmok
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
+
Classifier: Framework :: Django
|
|
13
|
+
Classifier: Framework :: Django :: 5
|
|
14
|
+
Classifier: Framework :: Django :: 6
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: System Administrators
|
|
17
|
+
Requires-Python: >=3.12
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: django>=5.2
|
|
21
|
+
Requires-Dist: pinmok>=1.0
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# <img src="https://www.pinmok.com/assets/img/pinmok.bg.svg" height="60" alt="Pinmok"> Pinmok Content
|
|
25
|
+
|
|
26
|
+
[](https://www.python.org/)
|
|
27
|
+
[](LICENSE)
|
|
28
|
+
|
|
29
|
+
[English](#english) | [简体中文](#简体中文)
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## English
|
|
34
|
+
|
|
35
|
+
pinmok-content is the official content module for [Pinmok](https://www.pinmok.com), providing article, category, and page management, along
|
|
36
|
+
with matching frontend display support.
|
|
37
|
+
|
|
38
|
+
### Installation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install pinmok-content
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Quick Start
|
|
45
|
+
|
|
46
|
+
**1. Add to `INSTALLED_APPS`**
|
|
47
|
+
|
|
48
|
+
Add `pinmok.content` after `pinmok.padmin`.
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
INSTALLED_APPS = [
|
|
52
|
+
...
|
|
53
|
+
'pinmok.padmin',
|
|
54
|
+
'pinmok.content', # must come after pinmok.padmin
|
|
55
|
+
]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**2. Configure URLs**
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from django.urls import path, include
|
|
62
|
+
|
|
63
|
+
urlpatterns = [
|
|
64
|
+
...
|
|
65
|
+
path('', include('pinmok.content.urls')),
|
|
66
|
+
]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**3. Run migrations**
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
python manage.py migrate
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**4. Sync menus**
|
|
76
|
+
|
|
77
|
+
After completing the steps above, a **Pinmok Content** menu item will automatically appear in the admin, with entries for articles,
|
|
78
|
+
categories, and more underneath. At this point, the menu is auto-generated from the Django app name and has no icons. After running a menu
|
|
79
|
+
sync, the menu will read from the configuration and correctly display localized names and icons.
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
#### Content Management
|
|
84
|
+
|
|
85
|
+
Full admin management for Articles, Pages, and Categories, with support for multi-language translation, status workflow (draft, in review,
|
|
86
|
+
published, withdrawn), featured/pinned flags, and multimedia assets (images, attachments, video, audio).
|
|
87
|
+
|
|
88
|
+
Pages share the same data structure as Articles and are suited for standalone static content that doesn't need to belong to a category.
|
|
89
|
+
|
|
90
|
+
#### Theme & Templates
|
|
91
|
+
|
|
92
|
+
pinmok-content is fully integrated with the Pinmok theme system — the frontend is driven by theme templates. Built-in template tags cover
|
|
93
|
+
common use cases like article lists, featured content, and category navigation, so theme developers can pull content straight into a
|
|
94
|
+
template with a single tag — no backend code or Python required. Switching themes changes the entire site's appearance, while template tags
|
|
95
|
+
keep the frontend fully decoupled from the backend. See the theme development docs for template tag usage and theme development.
|
|
96
|
+
|
|
97
|
+
#### REST API
|
|
98
|
+
|
|
99
|
+
pinmok-content ships with a built-in read-only REST API, suited for decoupled frontends, mini-programs, and similar scenarios. The API is
|
|
100
|
+
mounted under the `/api/` prefix and provides endpoints for article list/detail, category list/detail, with support for common parameters
|
|
101
|
+
like pagination, ordering, and category filtering, returning standard JSON.
|
|
102
|
+
|
|
103
|
+
Authentication and rate limiting are left to be configured at the project level.
|
|
104
|
+
|
|
105
|
+
### Requirements
|
|
106
|
+
|
|
107
|
+
| Dependency | Version |
|
|
108
|
+
|------------|---------|
|
|
109
|
+
| Python | >= 3.12 |
|
|
110
|
+
| Pinmok | >= 1.0 |
|
|
111
|
+
|
|
112
|
+
The required Django version follows whatever Pinmok requires, so it isn't pinned separately here.
|
|
113
|
+
|
|
114
|
+
### Contributing
|
|
115
|
+
|
|
116
|
+
Issues and pull requests are welcome. If you find this project useful, a star on the repository goes a long way for an independently
|
|
117
|
+
developed open-source project.
|
|
118
|
+
|
|
119
|
+
- GitHub: [github.com/pinmok/pinmok-content](https://github.com/pinmok/pinmok-content)
|
|
120
|
+
- Gitee: [gitee.com/pinmok/pinmok-content](https://gitee.com/pinmok/pinmok-content)
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 简体中文
|
|
125
|
+
|
|
126
|
+
pinmok-content 是 [Pinmok](https://www.pinmok.com) 的官方内容模块,提供文章、分类、页面等内容管理功能,以及配套的前端展示支持。
|
|
127
|
+
|
|
128
|
+
### 安装
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pip install pinmok-content
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### 快速开始
|
|
135
|
+
|
|
136
|
+
**1. 添加到 INSTALLED_APPS**
|
|
137
|
+
|
|
138
|
+
将 `pinmok.content` 添加在 `padmin` 之后。
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
INSTALLED_APPS = [
|
|
142
|
+
...
|
|
143
|
+
'pinmok.padmin',
|
|
144
|
+
'pinmok.content', # 必须在 pinmok.padmin 之后
|
|
145
|
+
]
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**2. 配置 URL**
|
|
149
|
+
|
|
150
|
+
```python
|
|
151
|
+
from django.urls import path, include
|
|
152
|
+
|
|
153
|
+
urlpatterns = [
|
|
154
|
+
...
|
|
155
|
+
path('', include('pinmok.content.urls')),
|
|
156
|
+
]
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**3. 执行数据库迁移**
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
python manage.py migrate
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**4. 同步菜单**
|
|
166
|
+
|
|
167
|
+
完成以上步骤后,后台管理界面会自动出现 **Pinmok Content** 菜单项,文章、分类等管理入口在其下方。但此时菜单由 Django
|
|
168
|
+
应用名自动生成,尚未包含图标。执行一次菜单同步后,菜单将从配置中读取,正确显示多语言名称及图标。
|
|
169
|
+
|
|
170
|
+
### 功能概览
|
|
171
|
+
|
|
172
|
+
#### 内容管理
|
|
173
|
+
|
|
174
|
+
提供文章(Article)、页面(Page)、分类(Category)的完整后台管理,支持多语言翻译、状态流转(草稿、审核、发布、撤回)、文章置顶与推荐标记,
|
|
175
|
+
以及图片、附件、视频、音频等多媒体资源管理。
|
|
176
|
+
|
|
177
|
+
页面(Page)与文章共享相同的数据结构,适用于无需挂载分类的独立静态内容页面。
|
|
178
|
+
|
|
179
|
+
#### 主题与模板
|
|
180
|
+
|
|
181
|
+
pinmok-content 完全集成 Pinmok 主题系统,前端页面由主题模板驱动。内置的模板标签覆盖文章列表、推荐内容、分类导航等常见场景,
|
|
182
|
+
主题开发者只需在模板中调用标签即可获取内容——无需编写任何后端代码,也无需懂 Python。更换主题即可改变整站风格,而模板标签则让前端与后端彻底解耦。
|
|
183
|
+
模板标签的使用方式及主题开发方法,请参考主题开发文档。
|
|
184
|
+
|
|
185
|
+
#### REST API
|
|
186
|
+
|
|
187
|
+
pinmok-content 内置只读 REST API,适用于前后端分离、小程序等场景。API 挂载在 `/api/` 前缀下,提供文章列表、文章详情、分类列表、
|
|
188
|
+
分类详情等接口,支持分页、排序、分类筛选等常用参数,返回标准 JSON 格式。
|
|
189
|
+
|
|
190
|
+
接口鉴权与访问频率限制由项目层自行配置即可。
|
|
191
|
+
|
|
192
|
+
### 依赖
|
|
193
|
+
|
|
194
|
+
| 依赖 | 版本 |
|
|
195
|
+
|--------|---------|
|
|
196
|
+
| Python | >= 3.12 |
|
|
197
|
+
| pinmok | >= 1.0 |
|
|
198
|
+
|
|
199
|
+
Django 版本要求随 pinmok 而定,无需单独指定。
|
|
200
|
+
|
|
201
|
+
### 参与贡献
|
|
202
|
+
|
|
203
|
+
欢迎提交 Issue 或 Pull Request。如果觉得有用,去仓库点个 Star 也是实实在在的支持。
|
|
204
|
+
|
|
205
|
+
- GitHub:[github.com/pinmok/pinmok-content](https://github.com/pinmok/pinmok-content)
|
|
206
|
+
- Gitee:[gitee.com/pinmok/pinmok-content](https://gitee.com/pinmok/pinmok-content)
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# <img src="https://www.pinmok.com/assets/img/pinmok.bg.svg" height="60" alt="Pinmok"> Pinmok Content
|
|
2
|
+
|
|
3
|
+
[](https://www.python.org/)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
[English](#english) | [简体中文](#简体中文)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## English
|
|
11
|
+
|
|
12
|
+
pinmok-content is the official content module for [Pinmok](https://www.pinmok.com), providing article, category, and page management, along
|
|
13
|
+
with matching frontend display support.
|
|
14
|
+
|
|
15
|
+
### Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install pinmok-content
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Quick Start
|
|
22
|
+
|
|
23
|
+
**1. Add to `INSTALLED_APPS`**
|
|
24
|
+
|
|
25
|
+
Add `pinmok.content` after `pinmok.padmin`.
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
INSTALLED_APPS = [
|
|
29
|
+
...
|
|
30
|
+
'pinmok.padmin',
|
|
31
|
+
'pinmok.content', # must come after pinmok.padmin
|
|
32
|
+
]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**2. Configure URLs**
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from django.urls import path, include
|
|
39
|
+
|
|
40
|
+
urlpatterns = [
|
|
41
|
+
...
|
|
42
|
+
path('', include('pinmok.content.urls')),
|
|
43
|
+
]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**3. Run migrations**
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
python manage.py migrate
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**4. Sync menus**
|
|
53
|
+
|
|
54
|
+
After completing the steps above, a **Pinmok Content** menu item will automatically appear in the admin, with entries for articles,
|
|
55
|
+
categories, and more underneath. At this point, the menu is auto-generated from the Django app name and has no icons. After running a menu
|
|
56
|
+
sync, the menu will read from the configuration and correctly display localized names and icons.
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
#### Content Management
|
|
61
|
+
|
|
62
|
+
Full admin management for Articles, Pages, and Categories, with support for multi-language translation, status workflow (draft, in review,
|
|
63
|
+
published, withdrawn), featured/pinned flags, and multimedia assets (images, attachments, video, audio).
|
|
64
|
+
|
|
65
|
+
Pages share the same data structure as Articles and are suited for standalone static content that doesn't need to belong to a category.
|
|
66
|
+
|
|
67
|
+
#### Theme & Templates
|
|
68
|
+
|
|
69
|
+
pinmok-content is fully integrated with the Pinmok theme system — the frontend is driven by theme templates. Built-in template tags cover
|
|
70
|
+
common use cases like article lists, featured content, and category navigation, so theme developers can pull content straight into a
|
|
71
|
+
template with a single tag — no backend code or Python required. Switching themes changes the entire site's appearance, while template tags
|
|
72
|
+
keep the frontend fully decoupled from the backend. See the theme development docs for template tag usage and theme development.
|
|
73
|
+
|
|
74
|
+
#### REST API
|
|
75
|
+
|
|
76
|
+
pinmok-content ships with a built-in read-only REST API, suited for decoupled frontends, mini-programs, and similar scenarios. The API is
|
|
77
|
+
mounted under the `/api/` prefix and provides endpoints for article list/detail, category list/detail, with support for common parameters
|
|
78
|
+
like pagination, ordering, and category filtering, returning standard JSON.
|
|
79
|
+
|
|
80
|
+
Authentication and rate limiting are left to be configured at the project level.
|
|
81
|
+
|
|
82
|
+
### Requirements
|
|
83
|
+
|
|
84
|
+
| Dependency | Version |
|
|
85
|
+
|------------|---------|
|
|
86
|
+
| Python | >= 3.12 |
|
|
87
|
+
| Pinmok | >= 1.0 |
|
|
88
|
+
|
|
89
|
+
The required Django version follows whatever Pinmok requires, so it isn't pinned separately here.
|
|
90
|
+
|
|
91
|
+
### Contributing
|
|
92
|
+
|
|
93
|
+
Issues and pull requests are welcome. If you find this project useful, a star on the repository goes a long way for an independently
|
|
94
|
+
developed open-source project.
|
|
95
|
+
|
|
96
|
+
- GitHub: [github.com/pinmok/pinmok-content](https://github.com/pinmok/pinmok-content)
|
|
97
|
+
- Gitee: [gitee.com/pinmok/pinmok-content](https://gitee.com/pinmok/pinmok-content)
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 简体中文
|
|
102
|
+
|
|
103
|
+
pinmok-content 是 [Pinmok](https://www.pinmok.com) 的官方内容模块,提供文章、分类、页面等内容管理功能,以及配套的前端展示支持。
|
|
104
|
+
|
|
105
|
+
### 安装
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
pip install pinmok-content
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### 快速开始
|
|
112
|
+
|
|
113
|
+
**1. 添加到 INSTALLED_APPS**
|
|
114
|
+
|
|
115
|
+
将 `pinmok.content` 添加在 `padmin` 之后。
|
|
116
|
+
|
|
117
|
+
```python
|
|
118
|
+
INSTALLED_APPS = [
|
|
119
|
+
...
|
|
120
|
+
'pinmok.padmin',
|
|
121
|
+
'pinmok.content', # 必须在 pinmok.padmin 之后
|
|
122
|
+
]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**2. 配置 URL**
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
from django.urls import path, include
|
|
129
|
+
|
|
130
|
+
urlpatterns = [
|
|
131
|
+
...
|
|
132
|
+
path('', include('pinmok.content.urls')),
|
|
133
|
+
]
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**3. 执行数据库迁移**
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
python manage.py migrate
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**4. 同步菜单**
|
|
143
|
+
|
|
144
|
+
完成以上步骤后,后台管理界面会自动出现 **Pinmok Content** 菜单项,文章、分类等管理入口在其下方。但此时菜单由 Django
|
|
145
|
+
应用名自动生成,尚未包含图标。执行一次菜单同步后,菜单将从配置中读取,正确显示多语言名称及图标。
|
|
146
|
+
|
|
147
|
+
### 功能概览
|
|
148
|
+
|
|
149
|
+
#### 内容管理
|
|
150
|
+
|
|
151
|
+
提供文章(Article)、页面(Page)、分类(Category)的完整后台管理,支持多语言翻译、状态流转(草稿、审核、发布、撤回)、文章置顶与推荐标记,
|
|
152
|
+
以及图片、附件、视频、音频等多媒体资源管理。
|
|
153
|
+
|
|
154
|
+
页面(Page)与文章共享相同的数据结构,适用于无需挂载分类的独立静态内容页面。
|
|
155
|
+
|
|
156
|
+
#### 主题与模板
|
|
157
|
+
|
|
158
|
+
pinmok-content 完全集成 Pinmok 主题系统,前端页面由主题模板驱动。内置的模板标签覆盖文章列表、推荐内容、分类导航等常见场景,
|
|
159
|
+
主题开发者只需在模板中调用标签即可获取内容——无需编写任何后端代码,也无需懂 Python。更换主题即可改变整站风格,而模板标签则让前端与后端彻底解耦。
|
|
160
|
+
模板标签的使用方式及主题开发方法,请参考主题开发文档。
|
|
161
|
+
|
|
162
|
+
#### REST API
|
|
163
|
+
|
|
164
|
+
pinmok-content 内置只读 REST API,适用于前后端分离、小程序等场景。API 挂载在 `/api/` 前缀下,提供文章列表、文章详情、分类列表、
|
|
165
|
+
分类详情等接口,支持分页、排序、分类筛选等常用参数,返回标准 JSON 格式。
|
|
166
|
+
|
|
167
|
+
接口鉴权与访问频率限制由项目层自行配置即可。
|
|
168
|
+
|
|
169
|
+
### 依赖
|
|
170
|
+
|
|
171
|
+
| 依赖 | 版本 |
|
|
172
|
+
|--------|---------|
|
|
173
|
+
| Python | >= 3.12 |
|
|
174
|
+
| pinmok | >= 1.0 |
|
|
175
|
+
|
|
176
|
+
Django 版本要求随 pinmok 而定,无需单独指定。
|
|
177
|
+
|
|
178
|
+
### 参与贡献
|
|
179
|
+
|
|
180
|
+
欢迎提交 Issue 或 Pull Request。如果觉得有用,去仓库点个 Star 也是实实在在的支持。
|
|
181
|
+
|
|
182
|
+
- GitHub:[github.com/pinmok/pinmok-content](https://github.com/pinmok/pinmok-content)
|
|
183
|
+
- Gitee:[gitee.com/pinmok/pinmok-content](https://gitee.com/pinmok/pinmok-content)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
__init__.py
|
|
5
|
+
|
|
6
|
+
Description:
|
|
7
|
+
A modular Django app providing content management features for Pinmok.
|
|
8
|
+
Author:
|
|
9
|
+
惠达浪 <crazys@126.com>
|
|
10
|
+
Created:
|
|
11
|
+
2026/1/17
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from django.utils.version import get_version
|
|
15
|
+
|
|
16
|
+
VERSION = (1, 0, 0, 'final', 0)
|
|
17
|
+
__version__ = get_version(VERSION)
|
|
18
|
+
|
|
19
|
+
__author__ = "惠达浪"
|
|
20
|
+
__author_email = "crazys@126.com"
|
|
21
|
+
__title__ = "Pinmok Content"
|
|
22
|
+
__license__ = "MIT"
|
|
23
|
+
__description__ = "A modular Django app providing content management features for Pinmok."
|