Installing A Cms for Django on Mac Os X

May 25, 2011 | By Duchateaux.

This tutorial take one of the most evolute CMS Django package and make it working on Mac os x.
This package is: djnago-cms
The prerequisites are Python, virtualenv, virtualenvwrapper
Start by making virtualenv on your virtualenv’s location:

cd $HOME/your-virtualenv-directory
virtualenv django-cms

Provide directly to install django-cms and his dependencies:

sudo pip install -E django-cms django-cms

Wait until all stuff has been installed.
After we follow to install some needed packages:

sudo pip install -E django-cms django-appmedia
sudo pip install -E django-cms pil

To complete the installation some database’s adapters.
Example if you think to work with PostgreSQL and MySQL:

sudo pip install -E django-cms psycopg2
sudo pip install -E django-cms MySQL-python

Now you will be ready to use your newly installed CMS.
Start a testing project.

cd django-cms
django-admin.py startproject testing

For to make easier your setup django-cms folks has prepared some scripts ready to startup.
Start by removing the existing one:

cd testing
rm settings.py
rm urls.py

Download the substitutes already compiled for your test:

curl -O https://gist.github.com/raw/776313/settings.py
curl -O https://gist.github.com/raw/776313/urls.py

After make the template’s directory and download a precompiled template:

mkdir templates
cd templates
curl -O https://gist.github.com/raw/776313/example.html

This test will be done using the existing database: sqlite3.

cd ..
python manage.py syncdb --all

You will be asked to make an admin, take note of data inserted for login on admin interface.

python manage.py migrate --fake
python manage.py runserver

Now you can start to test and playing with your new CMS at:

http://127.0.0.1:8000/admin

Give it the user and password you choose during database creation.

Start to Execute and Enjoy in your New Ground ;)
Next I will try to post some Useful Tut on Making some Stuff…


QuickChic Theme • Powered by WordPress