skeletonz - The simple Python CMS system

Requirements:

  • You have folder skeletonz_svn and you know the path to it
  • You have created another directory called folder my_sk_page or similar

To make it a bit easier let's say you checked out folder skeletonz_svn on your desktop. Your path would be:

C:\My Documents\Desktop\skeletonz_svn

Your folder my_sk_page is also on your desktop, so its path would be:

C:\My Documents\Desktop\my_sk_page

Our aim

The goal is to create Skeletonz basic structure. Are we going to create it manually? No. We have scripts that can handle that!

Step 1: Define publishing script

  • Open a Windowx Explorer folder C:\My Documents\Desktop\skeletonz_svn\scripts
  • Duplicate the publish script publish_sources.py, and rename it (e.g. publish_my_sk_page.py)
  • Edit your new "publish" file and modify the following lines
START_PATH = os.path.realpath(r'C:\Documents and Settings\user\Desktop\skeletonz_svn')
DEST_PATH = os.path.realpath(r'C:\Documents and Settings\user\Desktop\skeletonz_web')

to

START_PATH = os.path.realpath(r'C:\My Documents\Desktop\skeletonz_svn')
DEST_PATH = os.path.realpath(r'C:\My Documents\Desktop\my_sk_page')

Step 2: Create basic site structure

  • Open a command line and execute this file with Python (should be something like the following)
C:\Python24\python.exe C:\My Documents\Desktop\skeletonz_svn\scripts\publish_my_sk_page.py

You should have a lot of brand new files in folder C:\My Documents\Desktop\my_sk_page!

Step 3 : Customize the configuration file

Simply go to folder C:\My Documents\Desktop\my_sk_page and edit general_config.py accordingly to your needs!

Your are done and ready to start!

Addendum : Update your website with latest skeletonz sources

That's really simple ! All you have to do is:

  • refresh your subversion repository, basically run svn update
  • do step 2 (and only step 2) once more !

That's all!

Powered by Skeletonz