|
Installation
InstallationBefore Installing Grappelli, please take a look at the known Django Issues.
Install Grappelli anywhere on your python-path.svn checkout http://django-grappelli.googlecode.com/svn/branches/grappelli_2/ grappelli Open your projects settings-file (settings.py) and add Grappelli to your INSTALLED APPS before django.contrib.admin.
Open your projects settings-file. For Grappelli, you need the request context processor. The authentication context processor is needed for the admin-interface anyway.
Add Grappelli to your url-definitions.
Take a look at the available grappelli-settings and change them (if needed). Run the Django 'syncdb' command to create the appropriate tables.python manage.py syncdbThis will create the tables for Bookmarks, Help & Navigation. It´s recommended to load some initial data.python manage.py loaddata grappelli_navigation.json --settings=settings python manage.py loaddata grappelli_help.json --settings=settingsNote that the Admin-Links within the Fixtures begin with /admin/ ... if your Admin-Interface is accessible via a different URL, you have to change this (either change the json-files before loading or change the URLs afterwards). Copy the folder /media/ to your admin media-directory. Alternatively, you might want to use a symlink.cp -R /path/to/grappelli/media /path/to/your/admin/mediaNote: If possible, avoid using /django/contrib/admin/media/ as your media directory (since it will break future django-updates). Note: If you use Djangos integrated development server, start it with python manage.py runserver mydomain.com:8000 --adminmedia=/path/to/your/admin/media/ | |