kopia lustrzana https://github.com/rtts/django-simplecms
Warning! Backwards-incompatible change: custom views should now be placed in
cms.py (instead of views.py)main
rodzic
045b05a337
commit
bd2d622db9
|
@ -7,6 +7,4 @@ class CmsConfig(AppConfig):
|
||||||
verbose_name = _('Content Management System')
|
verbose_name = _('Content Management System')
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
# Need to load view models of all installed apps to make the
|
autodiscover_modules('cms')
|
||||||
# register_view decorator work
|
|
||||||
autodiscover_modules('views')
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<link rel="icon" href="{% static 'favicon.png' %}">
|
<link rel="icon" href="{% static 'favicon.png' %}">
|
||||||
{% block extrahead %}{% endblock %}
|
{% block extrahead %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="{% block bodyclass %}{% endblock %}">
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
|
@ -38,6 +38,9 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% include 'cms/editlink.html' %}
|
{% if request.user.is_staff %}
|
||||||
|
<a class="edit" href="edit/{{section.number}}/">{% trans 'edit' %}</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Ładowanie…
Reference in New Issue