Last modified: Jan 10, 2023 By Alexander Williams
Python Pelican: installation & setting up
In this first lesson, we'll install and setup pelican.
Table Of Contents
installing Python pelican
To install pelican, we need to use this following command
pip install pelican
setting up Python pelican
To set up our project, we need to use the following command :
pelican-quickstart
After that, you'll appear you many questions about your website. You can answer them according to your project.
> What will be the title of this web site? Pyblog
> Who will be the author of this web site? Pyauthor
> What will be the default language of this web site? [en] en
> Do you want to specify a URL prefix? e.g., https://example.com (Y/n) n
> Do you want to enable article pagination? (Y/n) y
> How many articles per page do you want? [10] 10
> What is your time zone? [Europe/Paris] Europe/Paris
> Do you want to generate a tasks.py/Makefile to automate generation and publishing? (Y/n) y
> Do you want to upload your website using FTP? (y/N) n
> Do you want to upload your website using SSH? (y/N) n
> Do you want to upload your website using Dropbox? (y/N) n
> Do you want to upload your website using S3? (y/N) n
> Do you want to upload your website using Rackspace Cloud Files? (y/N) n
> Do you want to upload your website using GitHub Pages? (y/N) n
Congratulation! Your Pelican project is ready to work, and it looks like this :
yourproject/
├── content
│ └── (pages)
├── output
├── tasks.py
├── Makefile
├── pelicanconf.py # Main settings file
└── publishconf.py # Settings to use when ready to publish
the next lesson
#lesson 2 : Preparing a Theme and create the base for pelicanSee you later!