1 1. Set up the database params in settings.py
2 2. Comment out the following item in the INSTALLED_APPS variable in settings.py (around line 80): 'ils_admin.setup',
3 * If this is not commented out, Django will attempt to create tables for the ILS models, which
4 could cause the creation of duplicate tables with slightly different names/layouts *
5 3. Run "python manage.py syncdb". This will install the necessary Django tables in the database
6 4. Uncomment the line commented out in #2.
8 To test the base Django app installation, you can run "python manage.py shell" to access the models directly.
9 Also, see http://www.djangoproject.com/documentation/tutorial1/
11 5. Add an Apache config similar to the one below (requires mod_python):
13 <Location /ils_setup/>
14 # Protect this sensitive sight
20 # set up the python/django handlers
21 PythonHandler django.core.handlers.modpython
22 SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
23 PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
25 # set up some good development settings
30 6. Add a symlink to "media" in your document root (e.g /openils/var/web) to the admin media dir:
31 e.g. /usr/lib/python2.4/site-packages/django/contrib/admin/media/
32 This can also be accomplished with an Alias directive in Apache config