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

15 lines
263 B
Python

# -*- 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)