Madison Digial Image Database (MDID)
Django 1.8.x upgrade - clone to a new directory
Status: Currently in a "for developers only/get it running" state - will work on an existing mdid3 installation's database, although obvs don't run it against a production database.
This branch has the potential to mess up the organization of a django 1.2.7 based branch, so
git clone to separate directory for testing
I'm currently running it on OS X but I tried to make any settings changes as generic as possible (I made most if not all directories set relative to PROJECT_ROOT)
I'd recommend making a fresh virtual env with python 2.7.x so everything has that 'oh-so-fresh' feeling!
I've been developing/testing this fork with an export of a production database and I haven't hit a snag, so right on!
big change notes
- Switched static files to the staticfiles app, so a good start for running against an already existing database after setting up your virtualenv is:
pip install -f requirements.txt ./manage.py collectstatic ./manage.py migrate --fake-initial ./manage.py runserver
- Note that as of Django 1.7 migrations are a requirement, so you must run the `./manage.py migrate' command before starting or... bad things, I guess. The repo includes an untested, pre-generated migrations file so installation should not have to involve If you are working with a pre-existing database copy (please please do not run this against your production data!) you should use this command:
./manage.py migrate --fake-initial
Following the newer django convention, moved the main app files to a 'project' directory, and followed Jeff Knupp's advice that this is really a 'config' directory, so settings file plus the main urls & wsgi files are in the PROJECT_ROOT/config directory, collected staticfiles are in PROJECT_ROOT/static, and local templates are in PROJECT_ROOT/templates.
A goal is to get anything in rooibos.contrib out of that dir and to use the requirements.txt file to install libraries in the standard way (or remove them if no longer needed e.g. django-logging).
- google_analytics * (note this library may need a replacement found)