Yes, as expected, you can install Kotti CMS also on Windows if you have this constraint!
What is Kotti
From the official doc:
"""A high-level, Pythonic web application framework based on Pyramid and SQLAlchemy. It includes an extensible Content Management System called the Kotti CMS.
Kotti is most useful when you are developing applications that:
- have complex security requirements
- use workflows, and/or
- work with hierarchical data
"""
It is developer friendly and with a good user interface. You can
easily extend it, develop new features or install one of the available
third party modules (search for Kotti on https://pypi.python.org/pypi if you want to browse existing modules ready to be used). Heavily inspired by Plone (http://plone.org).
If you want to evaluate Kotti you can install it locally (no database installation is required, you can use SQLlite during evaluation or development).
Otherwise if you are particular lazy there is a working demo online with admin / qwerty administrator credentials:
Prerequisites
- python (tested with python 2.7.9 but it should work also on newer versions)
- Microsoft Visual C++ 9.0 available on the following url http://aka.ms/vcpython27 (needed for an issue with bcrypt)
- virtualenv (suggested)
Installation steps
Once you have installed python from http://www.python.org you can start installing Kotti. I assume in this article that your Python installation path is C:\Python27.
Now create a new folder (it doesn't matter the name, in this article my folder name is just kotti):
> mkdir kotti
> cd kotti
Install virtualenv and create a new isolated python environment in your kotti dir:
Install Kotti and its requirements:> C:\Python27\Scripts\pip.exe install virtualenv> C:\Python27\Scripts\virtualenv.exe --no-site-packages .
> Scripts\pip.exe install -r https://raw.github.com/Kotti/Kotti/stable/requirements.txt
> Scripts\pip.exe install Kotti
Put inside your kotti dir the app.ini file downloaded from:
Runs Kotti:
Scripts\pserve.exe app.ini
Starting server in PID 2452
serving on http://127.0.0.1:5000
Done!
Update 20150219: if you want to install Kotti as a standard Windows service see this tutorial: http://pyramid-cookbook.readthedocs.org/en/latest/deployment/windows.html.
Update 20150219: if you want to install Kotti as a standard Windows service see this tutorial: http://pyramid-cookbook.readthedocs.org/en/latest/deployment/windows.html.
Troubleshooting (tested on Windows Vista)
If Microsoft Visual C++ Compiler for Python 2.7 is not installed on your environment you'll get an error during the requirements installation phase (only on Windows):
> Scripts\pip.exe install -r https://raw.githubusercontent.coYou just need to install this requirement and all will work fine.
m/Kotti/Kotti/stable/requirements.txt
....
Running setup.py install for py-bcrypt
building 'bcrypt._bcrypt' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
Get it from http://aka.ms/vcpython27
Complete output from command C:\Users\dmoro\kotti\Scripts\python.exe -c "imp
ort setuptools, tokenize;__file__='c:\\users\\dmoro\\appdata\\local\\temp\\pip-b
uild-mact2r\\py-bcrypt\\setup.py';exec(compile(getattr(tokenize, 'open', open)(_
_file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\u
sers\dmoro\appdata\local\temp\pip-wcmy6c-record\install-record.txt --single-vers
ion-externally-managed --compile --install-headers C:\Users\dmoro\kotti\include\
site\python2.7:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\bcrypt
copying bcrypt\__init__.py -> build\lib.win-amd64-2.7\bcrypt
running build_ext
building 'bcrypt._bcrypt' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
Get it from http://aka.ms/vcpython27
Troubleshooting 2 (tested on Windows 2008 R2 Server - updated 20150219)
You might experience other compilation errors on Windows due to different compiler versions, role management tool configuration, missing DLLs, environment variables (vcvars32.bat), missing header files, etc. The same C code that compiles fine on a Windows machine, on a different version of Windows could produce a compilation error (compiling under Windows is a pain).Anyway the following links helped me a lot a install py-bcrypt under Windows 2008 R2 Server with Visual Studio 2008 Express (free version downloadable from http://go.microsoft.com/?linkid=7729279):
- https://code.google.com/p/py-bcrypt/issues/detail?id=18
- http://stackoverflow.com/questions/10773732/compilation-error-in-visual-studio-linked-with-python26
- http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat
- http://stackoverflow.com/questions/3047542/building-lxml-for-python-2-7-on-windows/5122521#5122521
- http://stackoverflow.com/questions/17108102/download-and-install-visual-studio-2008
- http://blogs.msdn.com/b/vijaysk/archive/2009/08/16/you-must-use-the-role-management-tool-to-install-or-configure-microsoft-net-framework-3-5.aspx
- https://msahputra.wordpress.com/2009/04/13/clexe-for-vc9-visual-studio-2008/
- https://msahputra.wordpress.com/2009/04/13/clexe-for-vc9-visual-studio-2008/
- https://code.google.com/p/py-bcrypt/issues/detail?id=15
- http://msinttypes.googlecode.com/svn/trunk/stdint.h
Links
- http://kotti.pylonsproject.org/
- https://kotti.readthedocs.org/en/latest/
- https://kotti.readthedocs.org/en/latest/first_steps/installation.html
- http://kottidemo.danielnouri.org
- http://python.org
- http://www.pylonsproject.org/projects/pyramid/about
- https://twitter.com/KottiCMS
Screenshots
Kotti's folder contents (from the public demo online), requires authentication:
All posts about Kotti
- Pyramid, MySQL and Windows: the good, the ugly and the bad
- Kotti CMS - how to turn your Kotti CMS into an intranet
- Kotti CMS - how to store arbitrary data with annotations
- How to install Kotti CMS on Windows
- Kotti CMS - avoid types addable in content root
- Kotti CMS - how to create a new content type with an image
- Kotti CMS - workflow reference
No comments:
Post a Comment
Note: only a member of this blog may post a comment.