LNLDB runs under Python2.x and Django.
- Install required system packages (by reference of a barebones Debian build; adjust for your system)
sudo apt-get install python2.7 python2.7-dev python-pip git mysql-server libmysqlclient-dev
- Get the sources
git clone https://github.com/jmerdich/lnldb.git
cd lnldb
- Install Python packages
sudo pip install -r reqs.txt
- Setup your database
mysql -u root -p
CREATE DATABASE lnlsql;
GRANT ALL PRIVILEGES ON lnlsql.* TO lnl@localhost IDENTIFIED BY 'password';
exit;
-
Create a local_settings.py with your settings Take the pieces of lnldb/settings.py that need to change and put it in lnldb/local_settings.py. That makes it easy to spawn a local copy without messing with other coders' settings.
-
Initialize the database
python manage.py syncdb
python manage.py migrate
python manage.py loaddata groups.json
python manage.py loaddata categories.json
All server-specific code hasn't and won't be included. Use local_settings.py All views have their functionality written out in """ """