add website application

This commit is contained in:
bkfox
2016-06-02 01:32:58 +02:00
parent 392d48ac0c
commit fcb1866f2e
8 changed files with 241 additions and 2 deletions

View File

@ -14,6 +14,11 @@ Simple CMS generator used in Aircox. Main features includes:
We aims here to automatize most common tasks and to ease website
configuration.
# Dependencies
* ```django-taggit```: publications tags
Note: this application can be used outside Aircox if needed.
# Architecture
A **Website** holds all required informations to run the server instance. It
is used to register all kind of posts, routes to the views, menus, etc.

View File

@ -1,6 +1,8 @@
from django.contrib import admin
import aircox.cms.models as models
admin.site.register(cms.Article)
admin.site.register(cms.Comment)

View File

@ -75,6 +75,7 @@
{% endfor %}
</ul>
{% if object_list %}
{% if page_obj or list.url %}
<nav>
{% if not page_obj or embed %}
@ -117,5 +118,6 @@
{% endif %}
</nav>
{% endif %}
{% endif %}
{% endblock %}