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:

~/Desktop/skeletonz_svn

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

~/Desktop/my_sk_page

Our aim

As a final result folder my_sk_page should have following structure:

Symbolic links

Are you going to manually create all those directories? No. We have scripts that can handle that!

Step 1: Creating the basic structure

First cd into folder my_sk_page:

cd ~/Desktop/my_sk_page

In folder skeletonz_svn/scripts there is a Python script called create_site_structure.py, call it to create the basic structure:

python ~/Desktop/skeletonz_svn/scripts/create_site_structure.py

You should now have two directories: folder dynamic_config_files and folder dynamic_dirs.

Step 2: Linking to Skeletonz libraries

You will need some directories from folder skeletonz_svn. On UNIX the most convinient way to accomplish this is by using symoblic links:

ln -s ~/Desktop/skeletonz_svn/site_plugins ~/Desktop/my_sk_page
ln -s ~/Desktop/skeletonz_svn/templates ~/Desktop/my_sk_page
ln -s ~/Desktop/skeletonz_svn/trunk/* ~/Desktop/my_sk_page

The script skeletonz_svn/scripts/create_sym_links.py will accomplish the same, you can call it this way:

python ~/Desktop/skeletonz_svn/scripts/create_sym_links.py ~/Desktop/skeletonz_svn ~/Desktop/my_sk_page

Step 3: Copy config file and start script

Simply copy them:

cp ~/Desktop/skeletonz_svn/config/general_config.py ~/Desktop/my_sk_page
cp ~/Desktop/skeletonz_svn/scripts/launch_server.py ~/Desktop/my_sk_page

Your are done and ready to start!

Powered by Skeletonz