SlideShare a Scribd company logo
Pelican for n00bs
Static Site Generator Powered by Python
Who am i?
@nazroll
Software Engineer, Sparkline.com
Organizer, Google Developer Groups Kuala Lumpur
Previously: Media Prima Digital (Digital Media & Online Services),
Chalkboard (Hyperlocal Ad Network) & a long list of adventures.
Building software for the World Wide Web since 1999.
Today, we’re going to learn (hopefully)
Why use a static site generator?
Setting up Pelican
Generate your site
Deploy to the World Wide Web
Why?
Warning: Bad Jokes Ahead
Which one is the best?
Complex plugins to maintain
BLOAT LIKE ME
CMS + Plugins = BLOATED!
Security vulnerabilities
I am too lazy!
Maintain server-side scripting software (PHP,
etc)
Maintain a database and it’s software (MySQL,
etc)
Read other people's code to patch that security
leak.
Getting Started with Pelican
Getting Started with Pelican
How?
Let’s all pray to the Demo Gods
Setting up Pelican
Requirements
python. REQUIRED. At least version 2.7.x
pip. REQUIRED. At least version 7.1.x
virtualenv. RECOMMENDED. At least version 13.x
To maintain sanity, install pelican within a
virtual environment!
# Install Pelican
pip install --no-cache-dir pelican
# feedgenerator
# RSS/XML feed generator.
# unidecode
# Translate Unicode string to ASCII string
# MarkupSafe
# Escape Unicode characters/strings safely for HTML templates.
# docutils
# Process text documentation into useable formats like HTML, XML, etc.
# blinker
# Object to object broadcasting and signaling
# Markdown
pip install --no-cache-dir Markdown
Demo
Setting up Pelican
Demo
Generate your site
pelican-quickstart
content/
<empty>
output/
<empty>
develop_server.py
fabfile.py
Makefile
pelicanconf.py
publishconf.py
# Generate HTML pages
pelican content
# Preview your site build
cd output && python -m pelican.server
# Open a browser and go to http://localhost:8000
Demo
Deploy to the World Wide Web
Deploy to the World Wide Web
FTP
SSH
Deploy to the World Wide Web
Other Python static site generators
Nikola
https://getnikola.com/
Hyde
http://hyde.github.io/
I recommend you to read these!
Pelican documentation (like duh!)
http://docs.getpelican.com/
Static site with Pelican, Grunt, Travis & Github Pages
http://goo.gl/B7evGr
Install and deploy a Pelican blog using Fabric - Part 1, 2, 3 & 4
http://goo.gl/ACVS1B
Pelican Guide Moving from Wordpress and Initial Setup
http://goo.gl/QEiOiN
Bonus read!
Host a Static Website on Google Cloud Storage
https://goo.gl/9HN75X
Google Developer Launchpad
https://developers.google.com/startups/
Get FREE credits & loads of other stuff!
Getting Started with Pelican
Keep in touch
nazroll@gmail.com / nazroll.com

More Related Content

PDF
Dockerize WordPress on Mac/Windows
PDF
Conhecendo o-composer-por-nandokstronet
PDF
Deployment tales
PDF
Deployment tales
KEY
Open Web Device: The first phone running Firefox OS!
PDF
DevOps - Infrastructure as Code by Andre Marcelo-Tanner
PDF
Frasco: Jekyll Starter Project
PDF
Vagrant - Team Development made easy
Dockerize WordPress on Mac/Windows
Conhecendo o-composer-por-nandokstronet
Deployment tales
Deployment tales
Open Web Device: The first phone running Firefox OS!
DevOps - Infrastructure as Code by Andre Marcelo-Tanner
Frasco: Jekyll Starter Project
Vagrant - Team Development made easy

What's hot (20)

PPTX
Infrastructure development on windows ldn cd meetup
PDF
Composer
PDF
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
PDF
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
PPTX
Varying wordpressdevelopmentenvironment wp-campus2016
PPTX
WordPress Development with VVV, VV, and Vagrant
ODP
Multi tenant CMSes using php
PDF
node-webkit : Make a magic from your a desktop app to desktop app!
PDF
CBDW2014- Intro to CommandBox; The ColdFusion CLI, Package Manager, and REPL ...
PPTX
Bringing Javascript to the Desktop with Electron
ODP
It Works On My Machine: Vagrant for Software Development
PDF
Vagrant: The Oscar Plug-in
PDF
Get Started in Professional WordPress Design & Development
PPTX
Webinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
PDF
BitTorrent on iOS
PDF
Sonata Block Bundle - sfPot March 2014
PDF
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
PDF
My Top 5 Favorite Gems
PPTX
Instruction to build Apache CloudStack docs with Sphinx
PDF
perlcc made easy or, how to make a CGI Moose app
Infrastructure development on windows ldn cd meetup
Composer
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
Varying wordpressdevelopmentenvironment wp-campus2016
WordPress Development with VVV, VV, and Vagrant
Multi tenant CMSes using php
node-webkit : Make a magic from your a desktop app to desktop app!
CBDW2014- Intro to CommandBox; The ColdFusion CLI, Package Manager, and REPL ...
Bringing Javascript to the Desktop with Electron
It Works On My Machine: Vagrant for Software Development
Vagrant: The Oscar Plug-in
Get Started in Professional WordPress Design & Development
Webinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
BitTorrent on iOS
Sonata Block Bundle - sfPot March 2014
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
My Top 5 Favorite Gems
Instruction to build Apache CloudStack docs with Sphinx
perlcc made easy or, how to make a CGI Moose app
Ad

Viewers also liked (20)

PDF
Web Development best practices
PDF
1335829820.8071 integrated%20hospital%20management%20system%20%5bihms%5d
PPTX
Introduction to JavaScript Programming
PDF
Even more java script best practices
PDF
Hugo - Introduction
PDF
Show & tell - Who is Hugo?
PPTX
U97 JavaScript Webinar
PPTX
JavaScript Full-Stack Development Course Session 01
PPTX
Graphic Design For Web
PPT
Starting with Reactjs
PPTX
003. ReactJS basic
PPTX
Reactjs
PPTX
Presentation on Gatsby to SF Static Web Tech Meetup
PDF
Finally, Professional Frontend Dev with ReactJS, WebPack & Symfony (Symfony C...
PPT
The M-Jirga
PPT
Kyrgyzstan
PDF
PDF
Richard Holbrooke's World: Memories of a Newsweek Special Correspondent - A Q...
PDF
PDF
AtlasCopco_Partner_No_2
Web Development best practices
1335829820.8071 integrated%20hospital%20management%20system%20%5bihms%5d
Introduction to JavaScript Programming
Even more java script best practices
Hugo - Introduction
Show & tell - Who is Hugo?
U97 JavaScript Webinar
JavaScript Full-Stack Development Course Session 01
Graphic Design For Web
Starting with Reactjs
003. ReactJS basic
Reactjs
Presentation on Gatsby to SF Static Web Tech Meetup
Finally, Professional Frontend Dev with ReactJS, WebPack & Symfony (Symfony C...
The M-Jirga
Kyrgyzstan
Richard Holbrooke's World: Memories of a Newsweek Special Correspondent - A Q...
AtlasCopco_Partner_No_2
Ad

Similar to Getting Started with Pelican (20)

PDF
Python Static Site Generator in Pelican
ODP
Introduction to Pelican
KEY
How to choose an open source cms
PPTX
Static Site Generators: what they are and when they are useful
PDF
Back to the future with static site generators
PDF
Introduction to Plone
PPTX
Static Site Generators - Developing Websites in Low-resource Condition
PDF
Static website generators
PDF
George Thiruvathukal, User Experiences with Plone Content Management
PDF
Python - A Comprehensive Programming Language
PDF
Nikola, a static blog & site generator python meetup 19 feb2014
PDF
Plone -- Evolving Python CMS
PDF
Pinax Presentation at DjangoCon 2008
PDF
The eggless Plone manifesto (or Plone the open source cms-as-a-service platf...
ODP
The Django Book CH13 Generating Non-HTML Content
PPT
Wpd09 Sydney
PDF
Wfuzz para Penetration Testers
PDF
KEY
Django Deployment with Fabric
PDF
Dr. Russell Keith-Magee: Building a development community
Python Static Site Generator in Pelican
Introduction to Pelican
How to choose an open source cms
Static Site Generators: what they are and when they are useful
Back to the future with static site generators
Introduction to Plone
Static Site Generators - Developing Websites in Low-resource Condition
Static website generators
George Thiruvathukal, User Experiences with Plone Content Management
Python - A Comprehensive Programming Language
Nikola, a static blog & site generator python meetup 19 feb2014
Plone -- Evolving Python CMS
Pinax Presentation at DjangoCon 2008
The eggless Plone manifesto (or Plone the open source cms-as-a-service platf...
The Django Book CH13 Generating Non-HTML Content
Wpd09 Sydney
Wfuzz para Penetration Testers
Django Deployment with Fabric
Dr. Russell Keith-Magee: Building a development community

More from Nazrul Kamaruddin (9)

PPTX
Facebook Messenger Bot with Flask & Google App Engine
PDF
HTML5 development in 30 minutes
PDF
Make Some Money: Speedy Guide to Monetize Android Apps
PDF
All Mashed Up - A HTML5 Mashup Story
ODP
Hello Roboto - Singapore GTUG 31/10/2009
ODP
Hello Roboto - GTUG KL 12092009
ODP
Google Chrome OS - GTUG KL Meetup 27072009
ODP
Hello Android - GTUG KL Meetup 27062009
PPT
Music 2.0: Community Building & Survival Guide
Facebook Messenger Bot with Flask & Google App Engine
HTML5 development in 30 minutes
Make Some Money: Speedy Guide to Monetize Android Apps
All Mashed Up - A HTML5 Mashup Story
Hello Roboto - Singapore GTUG 31/10/2009
Hello Roboto - GTUG KL 12092009
Google Chrome OS - GTUG KL Meetup 27072009
Hello Android - GTUG KL Meetup 27062009
Music 2.0: Community Building & Survival Guide

Recently uploaded (20)

PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Introduction to Artificial Intelligence
PDF
top salesforce developer skills in 2025.pdf
PDF
medical staffing services at VALiNTRY
PDF
System and Network Administration Chapter 2
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Nekopoi APK 2025 free lastest update
PPTX
Transform Your Business with a Software ERP System
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Understanding Forklifts - TECH EHS Solution
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Introduction to Artificial Intelligence
top salesforce developer skills in 2025.pdf
medical staffing services at VALiNTRY
System and Network Administration Chapter 2
How to Choose the Right IT Partner for Your Business in Malaysia
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
CHAPTER 2 - PM Management and IT Context
Operating system designcfffgfgggggggvggggggggg
Design an Analysis of Algorithms II-SECS-1021-03
Odoo POS Development Services by CandidRoot Solutions
Wondershare Filmora 15 Crack With Activation Key [2025
Nekopoi APK 2025 free lastest update
Transform Your Business with a Software ERP System
Which alternative to Crystal Reports is best for small or large businesses.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
ManageIQ - Sprint 268 Review - Slide Deck
Understanding Forklifts - TECH EHS Solution

Getting Started with Pelican

Editor's Notes

  • #10: Why should you use a static site generator? Because you are lazy!
  • #14: Why not python 3.x? There is some support, but it’s unstable. Especially for the plugins.
  • #17: When I was preparing the slides for this presentation, I found out that using pip install --no-cache-dir works well (with no errors) for new installation on OSX 10.10 (Yosemite). pip install --no-cache-dir pelican Bunch of stuff is being installed when you run this command. feedgenerator unidecode MarkupSafe docutils blinker Optional, but totally recommended is to install Markdown pip install --no-cache-dir Markdown Explain what each software installed is all about?
  • #18: Run pelican-quickstart Explain what is being generated? Create your first content. Copy from an existing file (no time waster) Run pelican content Run cd output && python -m pelican.server Open a browser and go to http://localhost:8000 Show example on theming.
  • #23: Show google cloud console Create app.yaml file Show the structure of the app.yaml file Create main.py file Show the structure of the main.py file Run through the code. Run local development Deploy