I have decided to move away from Wordpress for my home page. Reasons are, maintaining it with all the upgrades of Wordpress, themes and plugins is stressful, because you need to keep up with all the security issues. To avoid them, I used mod_security, but the config gets complicated as well.
Static files for a web page… is that not Y2K-times ?
I remember the Frontpage and CGI days with hard-coded fonts, tables, no usable CSS, etc. Why would I come back to static pages ?
Because it works
- I like Markdown
- I like Python
- these things just work (well, most of the time)
The fix is…
1 2 3 4 5
cd .../Priv/Web/work PYENV_VERSION=2.7.9 pyenv virtualenv venv27-pelican pyenv activate venv27-pelican pyenv local venv27-pelican pip install -r requirements.txt
mkdir site pelican-quickstart
I cannot run a local server, it always come up with an import issue:
fab serve Traceback (most recent call last): File "/opt/boxen/homebrew/Cellar/fabric/1.10.1/libexec/lib/python2.7/site-packages/fabric/main.py", line 743, in main *args, **kwargs File "/opt/boxen/homebrew/Cellar/fabric/1.10.1/libexec/lib/python2.7/site-packages/fabric/tasks.py", line 424, in execute results['<local-only>'] = task.run(*args, **new_kwargs) File "/opt/boxen/homebrew/Cellar/fabric/1.10.1/libexec/lib/python2.7/site-packages/fabric/tasks.py", line 174, in run return self.wrapped(*args, **kwargs) File ".../Priv/Web/work/site/fabfile.py", line 57, in serve server = AddressReuseTCPServer(('', PORT), ComplexHTTPRequestHandler) NameError: global name 'ComplexHTTPRequestHandler' is not defined
Temporary fix is to comment this line in
# from pelican.server import ComplexHTTPRequestHandler