community
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -44,6 +44,7 @@ INSTALLED_APPS = [
|
||||
'drf_spectacular', # Swagger文档生成
|
||||
'drf_spectacular_sidecar',
|
||||
'shop',
|
||||
'community',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -264,6 +265,32 @@ UNFOLD = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
"title": "社区与论坛",
|
||||
"separator": True,
|
||||
"items": [
|
||||
{
|
||||
"title": "活动管理",
|
||||
"icon": "event",
|
||||
"link": reverse_lazy("admin:community_activity_changelist"),
|
||||
},
|
||||
{
|
||||
"title": "活动报名",
|
||||
"icon": "how_to_reg",
|
||||
"link": reverse_lazy("admin:community_activitysignup_changelist"),
|
||||
},
|
||||
{
|
||||
"title": "技术论坛帖子",
|
||||
"icon": "forum",
|
||||
"link": reverse_lazy("admin:community_topic_changelist"),
|
||||
},
|
||||
{
|
||||
"title": "帖子回复",
|
||||
"icon": "chat_bubble",
|
||||
"link": reverse_lazy("admin:community_reply_changelist"),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
"title": "系统配置",
|
||||
"separator": True,
|
||||
|
||||
@@ -7,6 +7,7 @@ from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView, Sp
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('api/', include('shop.urls')),
|
||||
path('api/community/', include('community.urls')),
|
||||
|
||||
# Swagger文档路由
|
||||
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
|
||||
|
||||
Reference in New Issue
Block a user