Django CMS is a easy-to-use and developer-friendly , free and open source content management system platform for publishing content on the World Wide Web and intra-nets. It is based on Django, and written in Python. This presentation covers the basics of Django CMS and also integrating third party app with it.
3. AGENDA :
- What is CMS?
- Installation of Django CMS.
- Placeholder & Static
Placeholder.
- Templates.
- Integration of third party app.
- Demo using Django cms.
4. What is Content Management System:
- Content management is a process and/or software application used
by groups to plan, create, manage, store and distribute content.
- Content can include: web pages, images, documents, streaming
media, news releases, etc.
What a CMS Can Do:
- Can facilitate sharing of content across multiple Web sites
- Can make it easier for non-technical staff to update content
- Can improve consistency of look and feel
5. Installation of Django
cms:- Command: 'pip install djangocms-installer'
- Create a new directory to work in, and cd into it:
$ mkdir tutorial-project
$ cd tutorial-project
- Run it to create a new Django project called mysite:
$ djangocms -p . mysite
6. Placeholder:
Static placeholder:
Placeholders are an easy way to define sections in an HTML
template that will be filled with content from the database when the
page is rendered.
Static placeholders are an easy way to display the same content on
multiple locations on your website. Static placeholders act almost like
normal placeholders, except for the fact that once a static placeholder
is created and you added content to it, it will be saved globally. Even
when you remove the static placeholders from a template, you can
reuse them later.
7. Templates in Django cms:
- In Django shop, we have in-built templates so we don't have to work
on making a whole set of new templates of our own.
- We just need to use some template tags and our work will be easier.
{% extends "base.html" %}
{% load cms_tags staticfiles sekizai_tags menu_tags %}
{% load shop_tags %}
8. Integrating Django-shop:
- First, we need to install the app into our virtual environment from PyPI.
- Add 'shop' to your INSTALLED_APPS
pip install django-shop
- Add the shop to your urls.py
(r'^shop/', include('shop.urls')),
9. Reference Links:
- Django cms installation & - Basic settings for installation of Django-
cms
http://docs.django-cms.org/en/support-
3.0.x/introduction/install_from_scratch.html
- Placeholders
http://docs.django-cms.org/en/support-
3.0.x/introduction/templates_placeholders.html
- Django shop installation
http://django-
shop.readthedocs.org/en/latest/tutorial.html#installation
- List of add-ons for Django-cms
https://www.django-cms.org/en/add-ons/
12. Connect Us @Connect Us @
www.mindfiresolutions.com
https://www.facebook.com/MindfireSolutions
http://www.linkedin.com/company/mindfire-solutions
http://twitter.com/mindfires