Skip to main content

A Django app that will analyze and report on links in any model that you register with it.

Project description

http://ixxy.co.uk/media/documents/images/linkcheck.jpg

A fairly flexible app that will analyze and report on links in any model that you register with it. Links can be bare (urls or image and file fields) or embedded in HTML (linkcheck handles the parsing). It’s fairly easy to override methods of the Linkcheck object should you need to do anything more complicated (like generate URLs from slug fields etc).

You should run it’s management command via cron or similar to check external links regularly to see if their status changes. All links are checked automatically when objects are saved. This is handled by signals.

Basic usage

  1. Install app to somewhere on your Python path

  2. Add something along the lines of examples/linklists.py to every app that either:

  1. has models that contain content (e.g. url/image fields, chunks of markup or anything that gets transformed into a IMG or HREF when displayed

  2. can be the target of a link - i.e. is addressed by a url - in this case make sure it has an instance method named ‘get_absolute_url’

  1. Syncdb

  2. Add to your root url config:

    (r'^admin/linkcheck/', include('linkcheck.urls'))
  3. View /admin/linkcheck/ from your browser

The file ‘notifications.py’ is completely optional. It works with admin-notifications to display a notification about broken links as shown in the screenshot above.

We are aware that this documentation is on the brief side of things so any suggestions for elaboration or clarification would be gratefully accepted.

django-filebrowser integration

If django-filebrowser is present on your path then linkcheck will listen to the post-upload, delete and rename signals and update itself according

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-linkcheck-0.5.1.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file django-linkcheck-0.5.1.tar.gz.

File metadata

File hashes

Hashes for django-linkcheck-0.5.1.tar.gz
Algorithm Hash digest
SHA256 3bedc23d180b4393493c15204abf0d996d0f9daf1e0ffb2782148c69a6009c75
MD5 cc602f06d1692a56c3d14680e90ba192
BLAKE2b-256 663a0d6e58e8ddd89fbda1f3058a49c7ef9c6da96e92b439cad9d9449b358deb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page