Metadata-Version: 1.1
Name: django-admin-log
Version: 0.2
Summary: Application that logs errors generated in a web system into a model. The model is displayed in the administrator.
Home-page: https://github.com/mapeveri/django-admin-log
Author: Peveri Martin
Author-email: martinpeveri@gmail.com
License: BSD License
Description: Django Admin Log
        ================
        
        Application that logs errors generated in a web system into a model. The model is displayed in the administrator.
        
        Installing
        ----------
        
        pip install django-admin-log
        
        Quick start
        -----------
        
        1. Include the app 'log' to INSTALLED_APPS in the settings.py
        		
        2. Apply migration with migrate for registry the model of django-seo-admin::
        
        	python manage.py migrate
        
        3. Run server
        
        How to use?
        -----------
        
        1. For example, to record an error
        
        In the views.py::
        		
        	from log.utils import set_error_to_log
        
        	def myview(request, pk):
        
        		try:
        			raise "Error auto generate"
        		except Exception, e:
        			set_error_to_log(request, str(e))
        
        When occurs on error, go the administrator and visualize the record in the model.
        
        2. For example, for get errors loaded on a date
        	
        In the views.py::
        
        	from log.utils import get_data_log
        
        	def myview(request, pk):
        
        		now = datetime.datetime.now()
        		data = get_data_log('date', now)
        		content = data[0].content
        
        		return HttpResponse(content)
        
        In this example, i'm getting errors from field date with the value now. Then getting the first value.
        Other field can be username.
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
