mirror of https://github.com/scrapy/scrapy.git
removed django.contrib.comments requirement
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40574
This commit is contained in:
parent
3d85932ae0
commit
2f2c5cf19d
|
|
@ -42,7 +42,6 @@ class Post(models.Model):
|
|||
body = models.TextField(_('body'))
|
||||
tease = models.TextField(_('tease'), blank=True)
|
||||
status = models.IntegerField(_('status'), choices=STATUS_CHOICES, default=2)
|
||||
allow_comments = models.BooleanField(_('allow comments'), default=True)
|
||||
publish = models.DateTimeField(_('publish'))
|
||||
created = models.DateTimeField(_('created'), auto_now_add=True)
|
||||
modified = models.DateTimeField(_('modified'), auto_now=True)
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ INSTALLED_APPS = (
|
|||
'django.contrib.sites',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.markup',
|
||||
'django.contrib.comments',
|
||||
'scrapyorg.article',
|
||||
'scrapyorg.download',
|
||||
'scrapyorg.docs',
|
||||
|
|
|
|||
|
|
@ -6,7 +6,12 @@
|
|||
{% block body_id %}post_{{ object.id }}{% endblock %}
|
||||
|
||||
|
||||
{% block main-content_title %}
|
||||
{% block content_title %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block main-content %}
|
||||
{% load blog markup %}
|
||||
<h2>{{ object.title }}</h2>
|
||||
<p class="other_posts">
|
||||
{% if object.get_previous_by_publish %}
|
||||
|
|
@ -16,13 +21,9 @@
|
|||
| <a class="next" href="{{ object.get_next_post.get_absolute_url }}">{{ object.get_next_post }} »</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block main-content %}
|
||||
{% load blog markup comments %}
|
||||
{% comment %}
|
||||
{% load tagging_tags %}
|
||||
{% load comments tagging_tags %}
|
||||
{% endcomment %}
|
||||
|
||||
<p class="date">{{ object.publish|date:"j F Y" }}</p>
|
||||
|
|
@ -42,6 +43,8 @@
|
|||
{% endif %}
|
||||
{% endcomment %}
|
||||
|
||||
|
||||
{% comment %}
|
||||
{% get_comment_list for object as comment_list %}
|
||||
{% if comment_list %}
|
||||
<div id="comments">
|
||||
|
|
@ -69,4 +72,5 @@
|
|||
<p>Comments have been close for this post.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endcomment %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<li><a href="/docs/">Documentation</a></li>
|
||||
<li><a href="/community/">Community</a></li>
|
||||
<li><a href="http://dev.scrapy.org">Development</a></li>
|
||||
<li class="last"><a href="/blog/">Blog</a></li>
|
||||
<li class="last"><a href="/news/">news</a></li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue