2. Why?
• New Think Wize website
• Request to build a website
• Another request to build a website
• And another one …
• Django experience
3. Building websites
• Realistic budget
• Increasing baseline demands:
• Responsive
• Components: text and images, carousel, contact
form, map, analytics, newsletter, blog…
• Ability to make small edits
• Build yourself not really effective for most
26. Languages
Languages to enable. Option can be provided multiple times,
or as a comma separated list. Only language codes supported
by Django can be used
here: nl, en
Optional default time zone [default Europe/Brussels]:
Activate Django timezone support (choices: yes, no) [default
yes]: yes
45. Custom template
Use custom template set [default no]: no
(Use custom template set [default no]: ~/djangocms/
defaulttemplates/)
Load a starting page with examples after installation
(english language only). Choose "no" if you use a custom
template set. (choices: yes, no) [default no]: yes
55. templatetag
from django import template
register = template.Library()
@register.filter
def specialplugin(field):
if field in ['TextPlugin', 'FilerImagePlugin',
'LinkPlugin']:
return True
else:
return False
56. templatetag
templates/cms/toolbar/dragitem_menu.html
{% for module in module_list %}
{% for p in module.list %}
{% if p.value|specialplugin %}
<div class="cms-submenu-item">
<a style="background:#dff0d8" data-rel="add"
href="{{ p.value }}">{{ p.name }}</a>
</div>
{% endif %}
{% endfor %}
{% endfor %}
57.
58. Conclusion
• Django CMS: The open-source CMS used by
thousands of websites since 2007
• Effective way to build websites whether you
need the "content management" part or not
• Values technical quality and usability
• Recommended