add manage command to update geoip db

This commit is contained in:
j 2012-03-04 20:15:47 +01:00
commit 5a79659bb3
2 changed files with 27 additions and 9 deletions

View file

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from django.core.management.base import BaseCommand
from ... import config
class Command(BaseCommand):
"""
"""
help = 'update geoip database'
args = ''
def handle(self, **options):
config.update_geoip(True)