MCPcopy Create free account

hub / github.com/HelloGitHub-Team/HelloDjango-blog-tutorial / types & classes

Types & classes49 in github.com/HelloGitHub-Team/HelloDjango-blog-tutorial

↓ 4 callersClassCommentForm
comments/forms.py:6
↓ 3 callersClassHighlighter
自定义关键词高亮器,不截断过短的文本(例如文章标题)
blog/utils.py:5
↓ 1 callersClassAllPostsRssFeed
blog/feeds.py:6
↓ 1 callersClassPostIndex
blog/search_indexes.py:5
ClassAdminTestCase
blog/tests/test_views.py:217
ClassArchiveView
blog/views.py:24
ClassArchiveViewTestCase
blog/tests/test_views.py:107
ClassBlogConfig
blog/apps.py:4
ClassBlogDataTestCase
blog/tests/test_views.py:13
ClassBlogExtrasTestCase
blog/tests/test_templatetags.py:19
ClassCategory
Django 要求模型必须继承 models.Model 类。 Category 只需要一个简单的分类名 name 就可以了。 CharField 指定了分类名 name 的数据类型,CharField 是字符型, CharField 的 max_length 参数
blog/models.py:29
ClassCategoryModelTestCase
blog/tests/test_models.py:10
ClassCategoryView
blog/views.py:18
ClassCategoryViewTestCase
blog/tests/test_views.py:74
ClassComment
comments/models.py:5
ClassCommentAdmin
comments/admin.py:5
ClassCommentDataTestCase
comments/tests/base.py:8
ClassCommentExtraTestCase
comments/tests/test_templatetags.py:15
ClassCommentModelTestCase
comments/tests/test_models.py:5
ClassCommentViewTestCase
comments/tests/test_views.py:11
ClassCommentsConfig
comments/apps.py:4
ClassElasticsearch2IkSearchBackend
blog/elasticsearch2_ik_backend.py:6
ClassElasticsearch2IkSearchEngine
blog/elasticsearch2_ik_backend.py:16
ClassHighlighterTestCase
blog/tests/test_utils.py:5
ClassIndexView
blog/views.py:11
ClassIndexViewTestCase
blog/tests/test_views.py:46
ClassMeta
blog/models.py:42
ClassMeta
blog/models.py:58
ClassMeta
blog/models.py:107
ClassMeta
comments/forms.py:7
ClassMeta
comments/models.py:13
ClassMigration
blog/migrations/0003_auto_20191011_2326.py:6
ClassMigration
blog/migrations/0001_initial.py:8
ClassMigration
blog/migrations/0002_auto_20190711_1802.py:9
ClassMigration
blog/migrations/0004_post_views.py:6
ClassMigration
comments/migrations/0001_initial.py:8
ClassMigration
comments/migrations/0002_auto_20191011_2326.py:6
ClassPost
文章的数据库表稍微复杂一点,主要是涉及的字段更多。
blog/models.py:66
ClassPostAdmin
blog/admin.py:5
ClassPostDetailView
blog/views.py:42
ClassPostDetailViewTestCase
blog/tests/test_views.py:178
ClassPostModelTestCase
blog/tests/test_models.py:26
ClassRSSTestCase
blog/tests/test_views.py:238
ClassSearchIndexesTestCase
blog/tests/test_models.py:68
ClassSmokeTestCase
blog/tests/test_smoke.py:4
ClassTag
标签 Tag 也比较简单,和 Category 一样。 再次强调一定要继承 models.Model 类!
blog/models.py:50
ClassTagModelTestCase
blog/tests/test_models.py:18
ClassTagView
blog/views.py:35
ClassTagViewTestCase
blog/tests/test_views.py:145