Run Individual Cron Routines within Django

By  on  

When you're looking to run a single cron routine within Django, hit the terminal and run this:

# Running the "build_sitemaps" routine
./manage.py cron build_sitemaps

To see a list of available cron routines, run:

./manage.py cron

Running individual cron routines is probably an obvious flow for Django experts but hopefully this is easier to find than searching through loads of documentation!

Recent Features

Incredible Demos

  • By
    Detect Vendor Prefix with JavaScript

    Regardless of our position on vendor prefixes, we have to live with them and occasionally use them to make things work.  These prefixes can be used in two formats:  the CSS format (-moz-, as in -moz-element) and the JS format (navigator.mozApps).  The awesome X-Tag project has...

  • By
    Digg-Style Dynamic Share Widget Using MooTools

    I've always seen Digg as a very progressive website. Digg uses experimental, ajaxified methods for comments and mission-critical functions. One nice touch Digg has added to their website is their hover share widget. Here's how to implement that functionality on your site...

Discussion

  1. Jarno

    Hmmm, I’m fairly new to Django but I don’t see any management commands related to cron in Django 1.4 that I’m using.

    Were you maybe using some Django app such as Django Cronjobs (https://github.com/jsocol/django-cronjobs), for example, to get that management command?

    Keep up the good work with the posts!

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!