Switches platform to Django, adds tons of junk. Hopefully isn't bad.
- django 1.4
- python 2.7.3
in ubuntu, for instance:
sudo apt-get install libmysqlclient-dev python-dev libldap2-dev libsasl2-dev libssl-dev unixodbc-dev libxml2-dev libxslt1-dev build-essential python-pip python-virtualenv
(warning, this might not be all of them! If you're getting weird errors from the pip install -r requirements.pip step
it's probably because you're missing a c dependency.)
- install dependencies listed above
- git clone this repo
- Create a virtual environment:
cd .. ; virtualenv --no-site-packages env
- Activate the virtual environment
source env/bin/activate
- Install python requriments
cd ai ; pip install -r requirements.pip
. If you have problems here, you're either missing some dependencies from above, or pip is misconfigured. If Pip is getting angry about not being able to find or verify packages or something about Wheel, try downgrading it withpip install -U pip==1.4.1
- Install rhyno
pip install git+ssh://git@github.com/PLOS-Web/rhyno.git
- Create local settings from template:
cp ai/local_settings_sample.py ai/local_settings.py
- Look through new ai/local_settings.py and fill in required information
python manage.py syncdb
. Make yourself an admin account.python manage.py migrate
(At the end of this, a seed DB fixture should be loaded that should mirror the config on the production server.)python manage.py runserver --insecure 0.0.0.0:8000
(0.0.0.0 tells the django servlet that it can respond to remote requests. 8000 tells it to listen on port 8000)- Verify the site is working on your localhost: http://localhost:8000
- (Very optional last step that won't work at all unless you got all the config set up) To start the task scheduler
python ./manage.py celeryd -v 2 -B -s celery -E -l INFO
Log into the site using the account you made in step 9 above. Add Articles and other objects to play with.
Run a bunch of (extremely out-of-date and almost certain to fail) tests with django's awesome unit testing framework:
python manage.py test