blob: 00a1b8477cbee8d0da1b5bbbbb38f4343d12adb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import datetime, time
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from ishtar_common import tasks
class Command(BaseCommand):
help = "Load french towns"
def handle(self, *args, **options):
self.stdout.write("* Loading towns\n")
self.stdout.flush()
created, updated = tasks.load_towns()
self.stdout.write("%d towns created, %s towns updated\n\n" % (created,
updated))
self.stdout.flush()
|