Make sure you have installed:
- Python 2.6.x or 2.7.x
- A RDBMS of your choice (PostgreSQL, MySQL, SQLite or Oracle)
The installation is straightforward and should last just a few minutes.
- Download the installer from http://pypi.python.org/pypi/django-lfs
- $ tar xzf django-lfs-installer-<version>.tar.gz
- $ cd lfs-installer
- $ python bootstrap.py
- $ bin/buildout -v
- Enter your database settings to lfs_project/settings.py
- $ bin/django syncdb
- $ bin/django lfs_init
- $ bin/django collectstatic
- $ bin/django runserver
- Browse to http://localhost:8000/
Please note:
If you encounter problems during bin/buildout -v or on the first run on a Debian or Ubuntu server make sure you have the build tools and Python dev packages installed:
apt-get install build-essential
apt-get install python-dev
apt-get install python-all-dev
apt-get install python-profiler (multiverse repository)
Starting with version 0.6 we provide a migration command (lfs_migrate) which migrates existing databases to the latest release.
To migrate an existing database please proceed the following steps:
- Install the new version (see above)
- Backup your existing database
- Enter your existing database to lfs_project/settings.py
- $ bin/django syncdb
- $ bin/django lfs_migrate
After that your database should be ready to run with the latest release.
Move on to Getting started.