Django-frontend-notification Documentation

Similar documents
django-audiofield Documentation

django simple pagination Documentation

django-reinhardt Documentation

Python Project Example Documentation

nacelle Documentation

Aldryn Installer Documentation

Roman Numeral Converter Documentation

django-intercom Documentation

Django-CSP Documentation

Python wrapper for Viscosity.app Documentation

Django IPRestrict Documentation

Django Wordpress API Documentation

TPS Documentation. Release Thomas Roten

django-cron Documentation

sainsmart Documentation

Redis Timeseries Documentation

Release Nicholas A. Del Grosso

django-cas Documentation

chatterbot-weather Documentation

Mantis STIX Importer Documentation

Python simple arp table reader Documentation

django-konfera Documentation

Signals Documentation

I2C LCD Documentation

google-search Documentation

open-helpdesk Documentation

django-teamwork Documentation

django-responsive2 Documentation

Google Domain Shared Contacts Client Documentation

django-embed-video Documentation

Aircrack-ng python bindings Documentation

Gargoyle Documentation

django-messages Documentation

PyCon APAC 2014 Documentation

django-dynamic-db-router Documentation

django CMS Export Objects Documentation

django-selenium Documentation

Django Test Utils Documentation

A2Billing Flask API Documentation

Python State Machine Documentation

django-users2 Documentation

Python Schema Generator Documentation

Django Map Widgets Documentation

PyCRC Documentation. Release 1.0

Easy-select2 Documentation

django-ad-code Documentation

django-telegram-bot Documentation

wagtailtrans Documentation

django-private-chat Documentation

django-jenkins Documentation

django-embed-video Documentation

I hate money. Release 1.0

Simple libtorrent streaming module Documentation

django-idioticon Documentation

Django MFA Documentation

alphafilter Documentation

django-stored-messages Documentation

Simple Binary Search Tree Documentation

Trunk Player Documentation

Bambu API Documentation

Django File Picker Documentation

django-oscar-paypal Documentation

django-embed-video Documentation

Django Localized Recurrence Documentation

Biostar Central Documentation. Release latest

Kivy Designer Documentation

django-sticky-uploads Documentation

Django Groups Manager Documentation

Python data pipelines similar to R Documentation

Django Groups Manager Documentation

django-photologue Documentation

Poulpe Documentation. Release Edouard Klein

withenv Documentation

Tangent MicroServices Documentation

Game Server Manager Documentation

django-composite-foreignkey Documentation

Python AutoTask Web Services Documentation

MapEntity Documentation

Poetaster. Release 0.1.1

SagePay payment gateway package for django-oscar Documentation

Python State Machine Documentation

dj-libcloud Documentation

Gunnery Documentation

Bricks Documentation. Release 1.0. Germano Guerrini

django-allauth-2fa Documentation

Cookiecutter Django CMS Documentation

DJOAuth2 Documentation

Djam Documentation. Release Participatory Culture Foundation

eventbrite-sdk-python Documentation

Django-Select2 Documentation. Nirupam Biswas

Bishop Blanchet Intranet Documentation

OpenUpgrade Library Documentation

django-composite-foreignkey Documentation

doconv Documentation Release Jacob Mourelos

django-waffle Documentation

wagtail-robots Documentation

Pulp Python Support Documentation

DNS Zone Test Documentation

CID Documentation. Release Francis Reyes

Django Debug Toolbar Documentation

Transcription:

Django-frontend-notification Documentation Release 0.2.0 Arezqui Belaid February 25, 2016

Contents 1 Introduction 3 1.1 Overview................................................. 3 1.2 Documentation.............................................. 3 1.3 Contributing............................................... 3 1.4 License.................................................. 4 1.5 Credit................................................... 4 2 Installation overview 5 2.1 Install requirements........................................... 5 2.2 Configuration............................................... 5 3 Developer Documentation 7 3.1 Prerequisites............................................... 7 3.2 Coding Style & Structure........................................ 7 3.3 Django-Frontend-Notification Views.................................. 7 3.4 Test Case Descriptions.......................................... 9 4 Indices and tables 11 i

ii

Django-frontend-notification Documentation, Release 0.2.0 Contents: Release 0.2 Date February 25, 2016 Contents 1

Django-frontend-notification Documentation, Release 0.2.0 2 Contents

CHAPTER 1 Introduction Version 0.1.0 Keywords django, python, notification Django-Frontend-Notification is an application written in Python, using the Django Framework. The license is MIT : http://opensource.org/licenses/mit 1.1 Overview Django application to display on the frontend the list of notifications and run some basic actions such as view all notifications, delete notifications, etc... Django-Frontend-Notification also provides helpers to display new notifications. This works with twitter bootstrap (http://twitter.github.com/bootstrap/) but can easily be adapted with other front-end frameworks. 1.2 Documentation Extensive documentation is available on Read the Docs : http://django-frontend-notification.readthedocs.org 1.3 Contributing If you ve found a bug, implemented a feature or customized the template and think it is useful then please consider contributing. Patches, pull requests and suggestions are welcome! Source code: http://github.com/areski/django-frontend-notification If you don t like Github and Git you re welcome to send regular patches. 3

Django-frontend-notification Documentation, Release 0.2.0 Bug tracker: https://github.com/areski/django-frontend-notification/issues 1.4 License Copyright (c) 2011-2012 Star2Billing S.L. <info@star2billing.com> django-frontend-notification is licensed under MIT, see MIT-LICENSE.txt. 1.5 Credit django-frontend-notification is a Star2Billing-Sponsored Community Project, for more information visit http://www.star2billing.com or email us at info@star2billing.com 4 Chapter 1. Introduction

CHAPTER 2 Installation overview 2.1 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 http://www.pip- PIP is a tool for installing and managing Python packages, more information about PIP t : installer.org/en/latest/index.html. With PIP you can easily install all the requirements: $ pip install -r requirements.txt 2.2 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: 5

Django-frontend-notification Documentation, Release 0.2.0... 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 6 Chapter 2. Installation overview

CHAPTER 3 Developer Documentation Contents: 3.1 Prerequisites To fully understand this project, developers will need to have an advanced knowledge of: Django : http://www.djangoproject.com/ Python : http://www.python.org/ 3.2 Coding Style & Structure 3.2.1 Style Coding follows the PEP 8 Style Guide for Python Code. 3.2.2 Structure The frontend_notification directory: -- templatetags - Templatetags -- fixtures - `-- templates - This area is used to override templates `-- frontend_notification 3.3 Django-Frontend-Notification Views 3.3.1 user_notification User Detail change on Customer UI Attributes: form - UserChangeDetailForm, UserChangeDetailExtendForm, PasswordChangeForm, CheckPhoneNumberForm 7

Django-frontend-notification Documentation, Release 0.2.0 template - frontend/frontend_notification/user_notification.html Logic Description: User is able to change his/her detail. 3.3.2 notification_del_read Delete notification for the logged in user Attributes: object_id - Selected notification object object_list - Selected notification objects Logic Description: Delete/Mark as Read the selected notification 3.3.3 update_notification Notification Status (e.g. read/unread) can be changed from customer interface 3.3.4 frontend_send_notification User Notification (e.g. start stop pause abort contact/campaign limit) needs to be saved. It is a common function for the admin and customer UI s Attributes: pk - primary key of the campaign record status - get label for notifications 3.3.5 frontend_notification_status Notification Status (e.g. read/unread) need to be change. It is a common function for admin and customer UI Attributes: pk - primary key of notice record Logic Description: Selected Notification s status need to be changed. Changed status can be read or unread. 3.3.6 notice_count Get count of logged in user s notifications 8 Chapter 3. Developer Documentation

Django-frontend-notification Documentation, Release 0.2.0 3.4 Test Case Descriptions 3.4.1 How to run test 1. Run Full Test Suit: $ python manage.py test 2. Run Individual Test: $ python manage.py test frontend_notification 3.4. Test Case Descriptions 9

Django-frontend-notification Documentation, Release 0.2.0 10 Chapter 3. Developer Documentation

CHAPTER 4 Indices and tables genindex modindex search 11