forked from 0x2620/pandora
add manage command to update geoip db
This commit is contained in:
parent
c8da81ceb6
commit
5a79659bb3
2 changed files with 27 additions and 9 deletions
15
pandora/app/management/commands/update_geoip.py
Normal file
15
pandora/app/management/commands/update_geoip.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue