{{ post.title }}
13 | 20 |Published {{ post.publish }} by {{ post.author }}
21 | {{ post.body|truncatewords:50|linebreaks }} 22 |├── mysite ├── blog │ ├── __init__.py │ ├── tests │ │ ├── __init__.py │ │ ├── test_settings.py │ │ ├── test_forms.py │ │ ├── test_templatetags.py │ │ ├── test_models.py │ │ └── test_views.py │ ├── migrations │ │ ├── __init__.py │ │ ├── 0002_auto_20160216_1442.py │ │ ├── 0004_post_tags.py │ │ ├── 0003_comment.py │ │ └── 0001_initial.py │ ├── templatetags │ │ ├── __init__.py │ │ └── blog_tags.py │ ├── apps.py │ ├── templates │ │ ├── blog │ │ │ ├── post │ │ │ │ ├── latest_posts.html │ │ │ │ ├── share.html │ │ │ │ ├── list.html │ │ │ │ └── detail.html │ │ │ └── base.html │ │ └── pagination.html │ ├── forms.py │ ├── static │ │ └── css │ │ │ └── blog.css │ ├── urls.py │ ├── admin.py │ ├── factories.py │ ├── models.py │ └── views.py ├── mysite │ ├── __init__.py │ ├── urls.py │ ├── wsgi.py │ └── settings.py ├── functional_tests │ ├── __init__.py │ ├── test_post_share.py │ ├── test_post_detail.py │ ├── test_post_list.py │ └── test_admin.py └── manage.py ├── requirements.in ├── pylintrc ├── requirements.txt ├── .travis.yml ├── .gitignore └── README.md /mysite/blog/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mysite/mysite/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mysite/blog/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mysite/blog/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mysite/functional_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mysite/blog/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | """Module docstring""" 2 | -------------------------------------------------------------------------------- /requirements.in: -------------------------------------------------------------------------------- 1 | Django 2 | django-taggit 3 | pytz 4 | pytest 5 | factory_boy 6 | pylint 7 | selenium 8 | -------------------------------------------------------------------------------- /mysite/blog/apps.py: -------------------------------------------------------------------------------- 1 | # pylint: disable=missing-docstring 2 | 3 | from django.apps import AppConfig 4 | 5 | 6 | class BlogConfig(AppConfig): 7 | name = 'blog' 8 | -------------------------------------------------------------------------------- /mysite/blog/templates/blog/post/latest_posts.html: -------------------------------------------------------------------------------- 1 |
"{{ post.title }}" was successfully sent.
9 | {% else %} 10 |Published {{ post.publish }} by {{ post.author }}
21 | {{ post.body|truncatewords:50|linebreaks }} 22 |Published {{ post.publish }} by {{ post.author }}
8 | {{ post.body|linebreaks }} 9 | 10 | 11 | {# Similar posts #} 12 |There are no similar posts yet.
18 | {% endfor %} 19 |There are no comments yet.
37 | {% endfor %} 38 | 39 | {# New comment form #} 40 | {% if new_comment %} 41 |
30 | Comment {{ forloop.counter }} by {{ comment.name }} 31 | {{ comment.created }} 32 |
33 | {{ comment.body|linebreaks }} 34 |