Installation overview

Install requirements

A requirements file stores a list of dependencies to be installed for your project/application.

To get started with django-frontend-notification you must have the following installed:

  • python >= 2.4 (programming language)
  • Apache / http server with WSGI modules
  • Django Framework >= 1.3 (Python based Web framework)

The requirements are installed into a virtual environement so that the dependencies of the application do not interfere with other applications on the server. More information can be found about virtualenv at : http://pypi.python.org/pypi/virtualenv

PIP is a tool for installing and managing Python packages, more information about PIP t : http://www.pip-installer.org/en/latest/index.html.

With PIP you can easily install all the requirements:

$ pip install -r requirements.txt

Configuration

Add frontend-notification into INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
    ...
    'frontend-notification',
    ...
    )

Add frontend_notification_tags into templates to use different template tags:

{% load frontend_notification_tags %}

{% get_notice_count request %}

To get count of notification in your django views, add notice_count:

...
from frontend_notification.views import notice_count
...

def sample_view(request):
    print notice_count(request)

Download bootbox.js from bootboxjs.com and add into your media resource