Django Phonebook
Design with Bootstrap v3 framework (http://getbootstrap.com/)
Phonebook is a simple Django app to manage contacts (lastname, firstname, mail, phone, mobile phone) and integred click2call
.
Application development and testing with django v1.8.2
-
Add
phonebook
to your INSTALLED_APPS setting like this::INSTALLED_APPS = ( ... 'phonebook', )
-
Include the phonebook URLconf in your project urls.py like this::
url(r'^phonebook/', include('phonebook.urls')),
-
Run
python manage.py syncdb
to create the phonebook models. -
Start the development server and visit
http://127.0.0.1:8000/phonebook/
to start phonebook.
-
Change url for click2call in
phonebook/settings.py
::URL_CLICK_TO_CALL = getattr(settings, 'URL_CLICK_TO_CALL', 'http://my_url_click_to_call?num=')
If you do not use the click2call, do not change the
phonebook/settings.py
. -
This application is translated. add
LANGUAGE_CODE
,LANGUAGES
,LOCALE_PATHS
,MIDDLEWARE_CLASSES
,TEMPLATE_CONTEXT_PROCESSORS
insettings.py
::LANGUAGE_CODE = 'en' USE_I18N = True USE_L10N = True from django.utils.translation import gettext_lazy as _ LANGUAGES = ( ... ('en', _('English')), ('fr', _('French')), ) LOCALE_PATHS = ( os.path.join(BASE_DIR, 'phonebook/locale'), ) MIDDLEWARE_CLASSES = ( ... 'django.middleware.locale.LocaleMiddleware', ) TEMPLATE_CONTEXT_PROCESSORS = ( ... 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.i18n', )
- Create, edit, delete groups on contacts