pandora/pandora/app/management/commands/update_geoip.py

15 lines
263 B
Python
Raw Normal View History

2012-03-04 19:15:47 +00:00
# -*- coding: utf-8 -*-
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)