More or less you will use terminal window to do everything. First you need to create a proper environment. Where you can use easy_install for python tools install and for redis-server we will use Homebrew. Check their page (url: https://github.com/mxcl/homebrew/wiki/installation) to make first time install.
To use redis you need to install command line tools for xcode which can be found at the apple developer web pages (https://developer.apple.com/downloads - you’ll need apple ID for that) and xcode which can be downloaded using macosx app store. After successful installation of Homebrew do “brew install redis”.
It’s time to install Booktype now. Before everything I recommend (you don’t need to do it, just a recommendation) to create a virtual environment with:
easy_install virtualenv
and start it with:
virtualenv myvirtenv cd myvirtenv source bin/activate
You also need to install a pil library with easy_install pil (it is an image manipulation package for python)
Skip all the apt-get’s (it’s a Debian/Linux thing anyway)
easy_install django
easy_install simplejson
easy_install south
easy_install lxml
(as said skip apt-get, libraries will be installed during installation process)
easy_install unidecode
./createbooki --database sqlite $HOME/mybooki
DATABASES = {
'default': {
'NAME':'/Users/bostjan/peskovnik/virtualenv/booktype/mybooktype/database.sqlite',
'ENGINE': 'django.db.backends.sqlite3',
'USER': '',
'PASSWORD' : ''
}
}
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
django-admin.py syncdb --noinput
django-admin.py migrate
django-admin.py createsuperuser
django-admin.py loaddata documentation_licenses
That's more like it:
django-admin.py runserver
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.