Skip to content

Instantly share code, notes, and snippets.

@mikeywaites
Created June 11, 2013 11:33
Show Gist options
  • Save mikeywaites/5756183 to your computer and use it in GitHub Desktop.
Save mikeywaites/5756183 to your computer and use it in GitHub Desktop.
# coding: UTF-8
import sys
import logging
from django.core.management.base import BaseCommand
logger = logging.getLogger('command_mail')
from maps.models import Charity
class Command(BaseCommand):
def handle(self, *args, **kwargs):
for line in lines:
Charity.objectes.create(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment