django_contact_importer
django_contact_importer copied to clipboard
Import contacts from Gmail, Yahoo and Live accounts within your Django application.
About django_contact_importer
Import contacts from Gmail, Yahoo and Live accounts within your Django application.
Installing
Clone the repository and run the following command.::
python setup.py install
Configure Django Application
- Add
django_contact_importer
to yourINSTALLED_APPS
insettings.py
. - Obtain a client id and client secret from providers like Google, Yahoo and Live.
- Set your client id and client secret informations in settings.py.
::
GOOGLE_CLIENT_ID = your_google_client_id
GOOGLE_CLIENT_SECRET = your_google_client_secret
YAHOO_CLIENT_ID = your_yahoo_client_id
YAHOO_CLIENT_SECRET = your_yahoo_client_secret"
LIVE_CLIENT_ID = your_live_client_id
LIVE_CLIENT_SECRET = your_live_client_secret
- Open your urls.py and add the following line:
::
url(r'^contacts/', include("django_contact_importer.contacts.urls")),
You can now reach the application from http://127.0.0.1/contacts
.
Templates
There are two templates that you can override from your application.
1. contacts/index.html - Lists the providers.
2. contacts/invite.html - Lists the contacts retrieved from providers.