18 |
19 |
20 | {% block content %}
21 | {% endblock %}
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/containers/app/blog/templates/blog/post_detail.html:
--------------------------------------------------------------------------------
1 | {% extends "blog/base.html" %}
2 |
3 | {% block content %}
4 |
5 | {% if post.published_date %}
6 |
7 | {{ post.published_date }}
8 |
9 | {% endif %}
10 |
11 |
{{ post.title }}
12 |
{{ post.text|linebreaks }}
13 |
14 | {% endblock %}
15 |
--------------------------------------------------------------------------------
/containers/app/blog/templates/blog/post_edit.html:
--------------------------------------------------------------------------------
1 | {% extends "blog/base.html" %}
2 |
3 | {% block content %}
4 |
6 |
7 | {{ post.published_date }}
8 |
9 |
10 |
{{ post.text|linebreaks }}
11 |
12 | {% endfor %}
13 | {% endblock content %}
14 |
--------------------------------------------------------------------------------
/containers/app/blog/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/containers/app/blog/urls.py:
--------------------------------------------------------------------------------
1 | from django.conf.urls import url
2 |
3 | from . import views
4 |
5 |
6 | urlpatterns = [
7 | url(r'^$', views.post_list, name='post_list'),
8 | url(r'^post/(?P