Skip to content
Permalink
4ad10aa704
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
37 lines (34 sloc) 1.47 KB
from django.core.management.base import BaseCommand, CommandError
from core.models import Pangram
PANGRAMS = [
"The quick brown fox jumps over a lazy dog",
"Show mangled quartz flip vibe exactly",
"Pack my box with five dozen liquor jugs",
"Jumpy halfling dwarves pick quartz box",
"Vex quest wizard, judge my backflop hand",
"The jay, pig, fox, zebra and my wolves quack",
"Quest judge wizard bonks foxy chimp love",
"Fix problem quickly with galvanized jets",
"Heavy boxes perform quick waltzes and jigs",
"A wizard's job is to vex chumps quickly in fog",
"When zombies arrive, quickly fax judge Pat",
"Pack my red box with five dozen quality jugs",
"Blewjs computer quiz favored proxy hacking",
"Who packed five dozen old quart jugs in my box",
"Both fickle dwarves jinx my pig quiz",
"Fat hag dwarves quickly zap jinx mob",
"Fox dwarves chop my talking quiz job",
"Public junk dwarves quiz mighty fox",
"How quickly daft jumping zebras vex",
"Two driven jocks help fax my big quiz",
"Go, lazy fat vixen, be shrewd, jump quick",
"Big dwarves heckle my top quiz of jinx",
"Public junk dwarves hug my quartz fox",
"Five jumping wizards hex bolty quick",
"Five hexing wizard bots jump quickly",
]
class Command(BaseCommand):
help = "Seed pangram to the database"
def handle(self, *args, **options):
for statement in PANGRAMS:
Pangram.objects.create(statement=statement.lower())