Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-health-check

How to install django-health-check

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-health-check
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.1b3
0.2Never BuiltWhy not?
0.1.1b3 Available View build log
0.1.1b2 Available View build log
0.1b2 Available View build log
0.1a8 Available View build log
Windows (64-bit)
0.1.1b3
0.2Never BuiltWhy not?
0.1.1b3 Available View build log
0.1.1b2 Available View build log
0.1b2 Available View build log
0.1a8 Available View build log
Mac OS X (10.5+)
0.1.1b3
0.2Never BuiltWhy not?
0.1.1b3 Available View build log
0.1.1b2 Available View build log
0.1b2 Available View build log
0.1a8 Available View build log
Linux (32-bit)
0.2 Available View build log
0.1.1b3 Available View build log
0.1.1b2 Available View build log
0.1b2 Available View build log
0.1a8 Available View build log
Linux (64-bit)
0.2 Available View build log
0.1.1b3 Available View build log
0.1.1b2 Available View build log
0.1b2 Available View build log
0.1a8 Available View build log
 
License
BSD
Dependencies
Lastest release
version 0.2 on Mar 30th, 2013

django-health-check

System Message: WARNING/2 (<string>, line 2)

Title underline too short.

django-health-check
==================

This project checks a number of backends, if they are able to connect and do a simple action, e.g. check out the django ORM backend:

```python

System Message: WARNING/2 (<string>, line 7); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 7); backlink

Inline interpreted text or phrase reference start-string without end-string.

class DjangoDatabaseBackend(BaseHealthCheckBackend):

def check_status(self):
try:
obj = TestModel.objects.create(title="test") obj.title = "newtest" obj.save() obj.delete() return True
except IntegrityError:
raise ServiceReturnedUnexpectedResult("Integrity Error")
except DatabaseError:
raise ServiceUnavailable("Database error")

```

System Message: WARNING/2 (<string>, line 24); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 24); backlink

Inline interpreted text or phrase reference start-string without end-string.

The project is made using some of the same codes, that the django admin site uses - so when you have sucessfully written a new plugin, you register it to the pool, e.g.

`python plugin_dir.register(DjangoDatabaseBackend) `

Install

Add this to urls.py

`python url(r'^ht/', include('health_check.urls')) `

Add required apps:

```python

System Message: WARNING/2 (<string>, line 48); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 48); backlink

Inline interpreted text or phrase reference start-string without end-string.

'health_check', 'health_check_celery', 'health_check_db', 'health_check_cache', 'health_check_storage',

System Message: WARNING/2 (<string>, line 50)

Definition list ends without a blank line; unexpected unindent.

``` (remember to add dependencies, e.g. djcelery - however you should have that already, if you have celery running)

System Message: WARNING/2 (<string>, line 50); backlink

Inline literal start-string without end-string.

Set up monitoring

E.g. add to pingdom - django-health-check will return HTTP 200 if everything is OK and HTTP 500 if anything is not working.

Our mascot

![django-health-check is the most interresting project in the world](http://c.kristian.io/image/1J3x031Q0S3B/36347774.jpg)

Dependencies

Python 2.7+ (Yes, thats right, we have Python 3 support)

Django 1.2+

Subscribe to package updates

Last updated Mar 30th, 2013

Download Stats

Last month:5

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.