django-addressbook
django-addressbook copied to clipboard
An address book for Django where contacts may be added to various contact groups, and contacts are displayed in hcard format, have a downloadable vcard, have a QR code, and a gravatar.
Django-addressbook
Supported Versions
- master branch is for Django 1.5+
- other branch is for Django 1.4 or lower
Features
- Allow users to register themselves via their Facebook, Twitter, Google, or OpenID credentials
- Users can create contact records organized into user-defined contact groups
- The app supports storing for each contact: ** Multiple physical addresses ** Multiple phone numbers ** Multiple emails
- Each contact record supports exporting that record in vCard
format (
http://en.wikipedia.org/wiki/VCard) - Each contact record presents a QR code to allow a barcode scanner to import it
- Each contact record accesses any Gravatar for the contact
(
http://en.gravatar.com/) - Each contact uses the hCard microformat in its markup
http://microformats.org/wiki/hcard - A full unit test suite
- The app is installable using standard Python distutils
Installing the app
clone via git and python setup.py install
OR
(for django <= 1.4: easy_install django-addressbook)
Setting up the app
Assuming you have Django installed and this app installed (easy_install django-addressbook),
python manage.py syncdb- Add addressbook.urls to your urls:
url(r'^addressbook/', include('addressbook.urls')), - Add your site domain in settings.py:
DOMAIN = 'example.com' - Sym-link uni_form media: ln -s /path/to/uni_form/static/uni_form /path/to/project/media/uni_form (setup may differ depending on your MEDIA_URL)
- (optional) sym-link the sample css file for nicer looking forms (this may override your css):
:~$ ln -s /path/to/addressbook/static/addressbook.css /path/to/proj/media/css/addressbook.css - (optional) override templates as necessary by creating an
addressbookdirectory - (optional)
pip install toxfor runing tests (check http://tox.readthedocs.org/en/latest/ for more info)
NOTES
vCard Format: http://www.ietf.org/rfc/rfc2426.txt
Vobject Django snippet: http://djangosnippets.org/snippets/58/
Vobject usage: http://vobject.skyhouseconsulting.com/usage.html, http://lists.brotherharris.com/pipermail/vobject/2009-January/000165.html