yp_library.views module

class yp_library.views.SearchView(**kwargs)[源代码]

基类:ProfileTemplateView

图书检索页面

get()[源代码]
need_prepare: bool = False
page_name: str = '书籍搜索结果'
post()[源代码]
template_name: str = 'yp_library/search.html'
class yp_library.views.WelcomeView(**kwargs)[源代码]

基类:ProfileTemplateView

书房首页,提供近期活动、随机推荐、开馆时间; 首页的查询功能应该可以通过前端转到search页面,这里未做处理

get()[源代码]
need_prepare: bool = False
page_name: str = '元培书房'
template_name: str = 'yp_library/welcome.html'